On Mon, Apr 16, 2012 at 10:02 AM, Nafees <[email protected]> wrote:
> Thanks for reply.
>
> Is there any way, in which I can just send message once to activemq apart
> from using it inside a route and depending on data received from that .. I
> want to call the routes..
>

You can send a message to AMQ using a tool such as jconsole, hermes,
Fuse IDE etc.
And Apache ActiveMQ has some command line tools as well.
http://activemq.apache.org/tools.html
http://activemq.apache.org/activemq-command-line-tools-reference.html


>From Camel you can send a message once using  for example the timer
endpoint, and then set the repeatCount=1

from("timer:once?repeatCount=1")
  .transform(constant("Hello World"))
  .to("activemq:queue:someQueueName");


You can also send a message to AMQ using Camel from Java code using
the ProducerTemplate.
http://camel.apache.org/producertemplate.html


>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-invoke-a-route-based-on-incoming-ftp-message-tp5643121p5643196.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
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