How can i set my own ReplyQueue

additek's picture
Hi, i want to use the wso2 to transform my http request to an JMS message, which will be proceed in our backend. The service is an IN_OUT service and needs to send a reply message. And thats the problem. Where can i set my own replyQueue. I don't want to use the temporary queue. We use WebSphereMQ an wso 2.0.2 The config for my service looks like this: Thanks
AttachmentSize
service.xml1.31 KB
indika's picture

Hi You can use

Hi You can use 'transport.jms.ReplyDestination' If you want to specify it for request from ESB to service , change endpoint uri   <address uri="jms:/StockQuoteService?transport.jms.ConnectionFactoryJNDIName=someConnectionfactory&amp;java.naming.factory.initial=someInitialContextFactory&amp;transport.jms.ReplyDestination=replyQueue"/> If you want to specify it in proxy service so that send reply to Client , add parameter to the proxy server  <parameter name="transport.jms.ReplyDestination">replyQueue</parameter>   Thanks Indika
additek's picture

Hi, thanks for the reply.

Hi, thanks for the reply. But now i get a NullPointerException at line 267 in JMSSender: if (waitForResponse) { try { connection.start(); <<< line 267:NullPointerException } catch (JMSException ignore) {} try { correlationId = message.getJMSMessageID(); } catch(JMSException ignore) {} waitForResponseAndProcess(session, replyDestination,jmsOut.getReplyDestinationType(), msgCtx, correlationId); } What's the problem? Thanks Addi
indika's picture

Hi The issue is there in

Hi The issue is there in synapse-jms transport which in synapse-transports-1.2.wso2v2.jar. But this should not be in axis2-transport-jms-0.5.wso2v2.jar [source is at [1]... you can see ...Classes difference] . Unfortunately , both jar have same packages and Classes from synapse-transports-1.2.wso2v2.jar has been loaded. Correct one should be axis2-transport-jms-0.5.wso2v2.jar. Can you check with 2.1 RCs . This kind of class loading issue not there. [1] https://wso2.org/repos/wso2/branches/transports/0.5.wso2 Indika
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)