On Thu, Jul 14, 2011 at 8:14 AM, Sachin <sachin2...@gmail.com> wrote:
> We have a requirement to send a message from our application, which is
> basically a java bean to a JMS Queue.

You can send a message to any Camel endpoint from a java bean using eg
a ProducerTemplate.
http://camel.apache.org/producertemplate.html

You can also use annotations such as @Produce
http://camel.apache.org/pojo-producing.html

See more at bean integration
http://camel.apache.org/bean-integration.html

And this FAQ
http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html


>
> Since "A bean: endpoint cannot be defined as the input to the route",
> according to the definition, like to know how do we route message.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Need-to-send-a-message-from-bean-to-jms-queue-tp4585505p4585505.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, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to