-
1. Re: Camel routing problem
davsclaus Apr 13, 2011 11:18 AM (in response to manta7)When you send the message to the JMS queue you have to consider what thats should be
- inOnly (aka fire and forget)
- inOut (aka request-reply)
What happens now is the file polling will be in inOnly mode, which means the messages is send as fire and forget to the message queue. And then right thereafter processed in that pipeline.
It seems JBI is less forgiving about if the exchange pattern isn't configured as it expects. So you may want to change the exchange pattern to InOut.
There is a .setExchangePattern(ExchangePattern.InOut) you can use.
-
2. Re: Camel routing problem
manta7 Apr 13, 2011 11:28 AM (in response to davsclaus)First, thanks for you reply.
Then, I have to change the MEP of the polling or of the JMS Queue ?
But even if I change these MEPs, it didn't resolve my problem I think..
Indeed, I'm trying to use the pipeline EIP to redirect the output of my A bean to the input of my B bean.. but it don't work as I said
-
3. Re: Camel routing problem
manta7 Apr 13, 2011 11:31 AM (in response to davsclaus)To resume my problem I just want that when there is a new message into my JMS queue, I call a Bean component (with an In-Out MEP) and camel redirect this call to a In-Only MEP (like a file sender component)
-
4. Re: Camel routing problem
davsclaus Apr 13, 2011 11:34 AM (in response to manta7)You change the MEP where you need it changed.
If you do it after the JMS queue, then you do a fire and forget send message to the JMS queue, as it was InOnly.
-
5. Re: Camel routing problem
manta7 Apr 18, 2011 3:14 AM (in response to manta7)Yes, it was the correct solution.
For the next who will have this error, you have to add:
to(ExchangePattern.InOut, "jbi:endpoint:xxx:service:endpoint")
Thanks for your help!