FAQ

On Mon, Apr 16, 2012 at 10:02 AM, Nafees 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupusers @
categoriescamel
postedApr 16, '12 at 7:29a
activeApr 16, '12 at 10:11a
posts5
users2
websitecamel.apache.org

2 users in discussion

Nafees: 3 posts Claus Ibsen: 2 posts

People

Translate

site design / logo © 2022 Grokbase