Re: How to use request reply in JMS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to use request reply in JMS

Andathodan Tiringoli, Ancil Hameed
Hi Claus Ibsen, can you please help on below
I working on JBoss Fuse, I want to put my SOAP request in Active MQ Queue. After putting SOAP request in Queue I want a response sent back to my SOAP request.
Sample Code snippet: Below is my camel context
<cxf:cxfEndpoint    address="http://localhost:8181/cxf/hello"
id="SOAPInput" serviceClass="com.ws.demo.HelloWorld"/>
<bean class="com.ws.demo.SoapResProcessor" id="soapResProcessor"/>
<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring">
<route id="route1" streamCache="true">
<from id="sampleFrom" uri="cxf:bean:SOAPInput?
dataFormat=PAYLOAD&amp;exchangePattern=InOut"/>
<when id="whenBatch">
<xpath>starts-with(substring-after((/v1:processMessageRequest/name/text()),
'DEST_NAME='), "Sample")</xpath>`enter code here`
<to id="toSampleQ" uri="activemq:queue:SAMPLEQ?jmsMessageType=Text"/>
<process id="soapResProcess" ref="soapResProcessor"/>
</when>

Loading...