Could you also please tell me where would be the corelationId would it be in 
the SyanpseContext? Or somewhere else?

-----Original Message-----
From: Hiranya Jayathilaka [mailto:[email protected]]
Sent: Wednesday, December 01, 2010 3:38 PM
To: [email protected]
Subject: Re: Help needed: How to use co-rellation-id for JMS messages

Hi,

On Thu, Dec 2, 2010 at 3:33 AM, Abid Khan-EXT <[email protected]> wrote:
> Hello all,
>
> I was trying to find some example on how to set up an endpoint that uses JMS 
> correlation id mechanism to send reply back to predefined Queue.
>
> I could not find any would you please guide me.

Just add the transport.jms.ReplyDestination parameter to the JMS endpoint.

eg:

<endpoint>
                <address

uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.DestinationType=queue&amp;transport.jms.ReplyDestination=TestReplyQueue"/>
</endpoint>

Synapse will set the REPLY_TO JMS header on the outgoing request so
that the server can look it up and send the response to the
TestReplyQueue.

Thanks,
Hiranya

>
> Thanks,
> Abid
>



--
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Reply via email to