Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

How do I invoke Camel routes from JBI

When you use the JBI endpoint as follows

from("jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint")

you automatically expose the endpoint to the NMR bus where service qname is

{http://foo.bar.org}MyService

and endpoint name is MyEndpoint.

Then if you send a message via the JBI NMR to this JBI endpoint then it will be sent to the above Camel route.

Sending works in the same way: you use

to("jbi:endpoint:http://foo.bar.org/MyService/MyEndpoint") 

to send messages to JBI endpoint deployed to the bus.

I noticed that people are used to somehow 'declaring' endpoints in SMX. In camel it is enough to simply start a flow from a jbi endpoint and camel will create it automatically.

© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram