Re: Hor to route using objects

2010-12-06 Thread nkrust
claus.straube wrote: Hi. You can use camel in your java class like this: @EndpointInject(uri=direct:start) protected ProducerTemplate start; ... start.sendBody(body); The route should look like this: from(direct:start) // This is a java class and the message is a java

Re: Hor to route using objects

2010-12-03 Thread nkrust
Hi, The consumer is a java class and I'm passing a java VO to the producer(s) depending on certain parameters in the VO. from(endPoint) // This is a java class and the message is a java object. .choice() .when(simple(${body.ID}=='A')).to(serverX) .when(simple(${body.ID}=='B')).to(serverY)

Re: Hor to route using objects

2010-12-02 Thread nkrust
I was looking more for how the URI should be constructed. from uri=xxx/ I'm looking to route to different servers based on the VO that will be passed from a java class. Thanks for responding Claude. -- View this message in context: