You may want to try with the servicemix-jms component, where you can specify the replyToDestination on the endpoint. This is not really documented yet, so may take a look at the http://servicemix.org/servicemix-http doc, which is roughtly the same and/or junit test cases at http://svn.apache.org/viewcvs.cgi/*checkout*/incubator/servicemix/trunk/servicemix-jms/src/test/resources/xbean/xbean.xml?rev=389216
Cheers, Guillaume Nodet On 3/30/06, Peter Klotz <[EMAIL PROTECTED]> wrote: > Hi, > > can one define a JMSReplyTo destination in a message sent by the > JmsSenderComponent and have it wait on a return message from this replyTo > destination before returning a reply? > > Does anybody have an example of how to do something like this? > > What is the difference between JmsSenderComponent and JmsOutBinding as both > inherit from OutBinding? > > I still have the problem how to create a synchronous request-reply interaction > with JMS in ServiceMix. > > > servicemix-http ---> JMSSenderComponent --> request.queue > <--- <-- response queue (replyTo?) > > Both components the HTTP-Server as well as the JMS Sender are of course > running > inside ServiceMix. But how can I achieve that a HTTP request is send to a JMS > sender and a reply is returned as the response of the initial HTTP request? > The only way this could work IMHO would be that the JMS Sender sets a replyTo > attribute in the JMS message and listens on this, but I cannot find this in > the > code. I could not yet figure out how to extend this potentially if > servicemix-jms does not provide this functionality yet. > Do I have to sub-class JmsSenderComponent or JmsOutBinding and how can I use > them later-on? > > > What component do you use ? The servicemix-jms component can handle > > in-out MEP so there should be no problem with it... > > When I look at the servicemix-jms components in/out refers to someone sends a > JMS message from the outside into servicemix and gets a reply out. Also The > InBinding allow so send something into SM without response and the OutBinding > allows to send from SM to the outside a JMS message. Now what is missing and > is > exactly what I need and that is I send a JMS message from SM to the outside, > the > outside replies to SM and this reply should be handled synchronously. For > example using the JMSReplyTo mechanism. > > I this is really missing as I assume, I'd be willing to help and create it, I > just need a little help as I'm new to ServiceMix and especially to Spring. > > > Thanks, Peter > > >
