ed.
>
>
>>
>> Andrew
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Camel-Routing-based-on-bean-return-object-tp22249110p22249110.html
>> Sent from the Camel - Users (activemq) mailing list archive at
>> Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-Camel-Routing-based-on-bean-return-object-tp22249549p23610268.html
Sent from the Camel - Users mailing list archive at Nabble.com.
(MyEnumConstant)).to("jms:xxx")
>
> But this will invoke your bean on each predicate test and if you think
> this operation is very expensive, then you can do as above
> to route it to your bean prior the choice and set the result in a header.
>
> Then the testing
when(myErrorCode=myReturnCode.ERROR2).to("jms:queue:error2Queue")
>> .otherwise().to("jms:queue:unknownErrorQueue");
>>
>> Is it possible to somehow do routing based on bean which returns an
>> object? If I set my "returnCode" into the JMS Header
ot;jms:queue:error2Queue")
> .otherwise().to("jms:queue:unknownErrorQueue");
>
> Is it possible to somehow do routing based on bean which returns an
> object? If I set my "returnCode" into the JMS Header field I could use the
> header() method to get the val
--
View this message in context:
http://www.nabble.com/Camel-Routing-based-on-bean-return-object-tp22249110p22256561.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Camel-Routing-based-on-bean-return-object-tp22249110p22253813.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
using header("key") instead of the
method call predicate.
>
> Advice greatly appreciated.
>
> Andrew
>
> --
> View this message in context:
> http://www.nabble.com/Camel-Routing-based-on-bean-return-object-tp22249110p22249110.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
"returnCode" into the JMS Header field I could use the header()
method to get the values as seen in many examples on Camel website.
Advice greatly appreciated.
Andrew
--
View this message in context:
http://www.nabble.com/Camel-Routing-based-on-bean-return-object-tp22249110p22249110