You have to send the message to the JMS as InOnly to avoid using
request/reply over that JMS queue.
For example you can wireTap to the JMS queue, which should tap the
message as InOnly
from("demomllp").wireTap("queuea").beanRef("myBean","myMethod");
You can also change the MEP in the Camel route using .inOnly() and .inOut()
http://camel.apache.org/event-message.html
http://camel.apache.org/request-reply.html
On Sat, Apr 17, 2010 at 3:16 AM, faushouse <[email protected]> wrote:
>
> Here is what I am trying to do:
>
> --> MINA (mina:tcp://localhost:42000?sync=true&codec=#hl7codec) -->
> ActiveMQ:A (INBOUND) --> Some Magic Happens in RAILS_APP --> ActiveMQ:B
> (OUTBOUND) --> MINA
>
> Here is what I was hoping would happen:
>
> from("demomllp").to("queuea").beanRef("myBean","myMethod");
>
> myBean:myMethod would listen on ActiveMQ:B and process the message and
> return it back to demomllp.
>
> I have tried to just set a string and use a return statement and I am not
> getting anything back. it seems to be waiting forever. if i do this:
>
> from("demomllp").beanRef("myBean","myMethod");
>
> I get my response back exactly as expected. I have already tried doing a
> multicast, that didn't work. I tried using transactions on multiple queues,
> that didn't work. I am running ActiveMQ 5.3.0 with Camel embedded. Any
> help is greatly appreciated.
>
> Lee
>
>
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/MINA-%2B-ACTIVEMQ-%2B-BEANREF-tp28273414p28273414.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus