On 11/29/10 11:14 AM, enalposi wrote:

Willem - I should upgrade to 2.5 first and see if I can reproduce but it's
not as straight forward as hoped I am afraid.
Btw - I am defining the routes programmatically at startup time such as -

...
RouteBuilder.... {
public void configure() {
    from(source).process(myProcessor).to(destination);
}

It all works fine on pub/sub scenarios. But on synchronous request/response
the processor is called only on the inbound route but not outbound returning
the response. I suppose with JMS messaging, the response is sent on a temp
queue, which actually doesn't have a route with this processor defined.

No, it doesn't relate to the JMS message.


How do I get the processor to process bidirectionally?
The processor can just take care one way message. If you want to deal with the response message, you can add another processor like this

from(source).process(myInProcessor).to(destination).process(myOutProcessor).


Cheers.


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to