If you want to invoke the routeļ¼ you still need to send a message to the route,
even the message body and header are empty.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com
Hi,
I want to invoke camel route from java code.
CamelContext doesn't seem to have any method to invoke route.
Here is what my code looks like:
@Autowired
private CamelContext cc;
public void testMethod() {
System.out.println(cc.getRouteStatus(route1)); // prints true
// how to invoke
Hi
See this page
http://camel.apache.org/walk-through-an-example.html
You can use a producer template to send a message to a Camel route
from java code.
On Thu, Jul 18, 2013 at 5:58 PM, Tarun Kumar agrawal.taru...@gmail.com wrote:
Hi,
I want to invoke camel route from java code.
Hi Claus,
My camelContext has 1 route. From testMethod, i dont want to send any
body or headers. i just want to invoke route1 from this method.
On Thu, Jul 18, 2013 at 9:33 PM, Claus Ibsen claus.ib...@gmail.com wrote:
Hi
See this page
http://camel.apache.org/walk-through-an-example.html
for going about it.
Kindly let me know in case you want me to elaborate further. Many thanks in
advance.
--
View this message in context:
http://camel.465427.n5.nabble.com/Invoking-camel-route-using-values-in-database-table-tp5732029.html
Sent from the Camel - Users mailing list archive