2008/1/28, Roman Kalukiewicz <[EMAIL PROTECTED]>: > 2008/1/27, Sigmund <[EMAIL PROTECTED]>: > > Is it possible to do asynchronous JMS request/response using camel > > producerTemplate i.e. > > need to create temp queue and set JMSReplyTo, or is the only solution pure > > JMS api? > > I believe it is possible by setting pattern property on the exchange you send. > > You can use template.send(String, Processor) method and in your > processor you can do: > > ((DefaultExchange)exchange).setPattern(InOut); > > To clarify - what I write is not tested, and I don't have my eclipse > at the moment so if there are some methods that are named in a > different way, that find the proper one. Anyway SOMETHING like this > should work.
Ah - and one more thing - it is definitely not asynchronous then, but as far as I know JMSEndpoint doesn't support asynchronous invocations so far.. But no need to set JMSReplyTo manually using JMS interfaces ;) Roman