-
1. Re: JBI destination name of Camel BC?
bsnyder May 3, 2008 6:19 PM (in response to roger)1. Is the idea correct in terms of JBI "best-practice"?
If you're asking whether routing from the servicemix-file component to the servicemix-camel component is a good idea, then yes, it's a great idea! Camel is an extremely powerful mediation and routing framework that has become especially popular.
2. What is the destination name of my Camel router BC? I've tried to refer to it as "jbi:<ns>:<service>:<endpoint>", but I cannot find out how to refer to it. How do I name it (I suppose in jbi.xml) and how do I name the Camel's endpoint?
When creating a service using the servicemix-camel component, the service's name is defined using the Camel URI format. This URI format is defined in the from() method of your RouteBuilder (or from element if you're using XML configuration). To see an example of this, I encourage you to walk through a tutorial about using Camel with ServiceMix named Using Apache Camel inside ServiceMix.
Bruce
-
2. Re: JBI destination name of Camel BC?
roger May 5, 2008 7:36 AM (in response to bsnyder)Bruce,
Thanks for your help, that helped me out! I also noticed that specifying a "jbi:endpoint" URI rather than "jbi:service" automatically publishes the specified endpoint (and thus relieving me of a routing Warning message).
Regards,
Roger