a few comments...
from(...) is for defining camel routes (executed once on context startup
from a RouteBuilder's configure() method)
ProducerTemplate.sendBody(...) is for sending messages to routes already
defined
It appears that you are sending to a queue w/o any consumers, correct? I'm
not sure about the blocking you are seeing, but you can also use
template.asyncSendBody() to send w/o waiting for an ACK (will be much
faster).
Also, you can try adding a simple consumer route to verify what is going
into your queue...like this...
from("activemq:queue:test").to("log:messages?level=INFO")
-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Object-routing-tp4145397p4243322.html
Sent from the Camel - Users mailing list archive at Nabble.com.