this message in context:
http://camel.465427.n5.nabble.com/Hor-to-route-using-objects-tp3290076p3294008.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I'm sure will not get a java object back as http response ;) You should
read this documentation http://camel.apache.org/http.html and perhaps
write a simple test to check out how your response looks like. Then you
can convert it to a java bean or wath ever you want.
Best regards - Claus
class is not really smart thing to do, but
I'm just doin a POC to see what all can be done.
Any insight appretiated.
--
View this message in context:
http://camel.465427.n5.nabble.com/Hor-to-route-using-objects-tp3290076p3290569.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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 object.
.choice()
/Hor-to-route-using-objects-tp3290076p3290076.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action
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:
http://camel.465427.n5.nabble.com/Hor-to-route-using
You have to differ between consumers (from), producers (to) and the
route semantic like a content based routing. For me it's not clear what
you want to know. The from uris are depending on the consumer component
you want to use (http://camel.apache.org/components.html) as well as the