Re: Camel Routing based on bean return object

2009-05-18 Thread davsclaus
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.

Re: Camel Routing based on bean return object

2009-03-02 Thread ee7arh
(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

Re: Camel Routing based on bean return object

2009-03-02 Thread Claus Ibsen
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

Re: Camel Routing based on bean return object

2009-03-02 Thread ee7arh
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

Re: Camel Routing based on bean return object

2009-02-27 Thread willem.jiang
-- 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.

Re: Camel Routing based on bean return object

2009-02-27 Thread Markus Reil
-- 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.

Re: Camel Routing based on bean return object

2009-02-27 Thread Claus Ibsen
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/

Camel Routing based on bean return object

2009-02-27 Thread ee7arh
"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