-
1. Re: use of ActiveMQ component in Fuse ESB.
davsclaus Mar 2, 2011 2:40 AM (in response to tnk)You want to use a shared AMQ component for all your Camel applications?
If you export the bean to the osgi service registry, then the other Camel bundles ought to be able to look it up and use it. As they will lookup in OSGi service registry first, before their "own XML file".
-
2. Re: use of ActiveMQ component in Fuse ESB.
valdar Mar 22, 2011 7:52 AM (in response to davsclaus)I'm also interested in the topic; can you please give us more details ?
Thank you in advance,
Andrea.
-
3. Re: use of ActiveMQ component in Fuse ESB.
futuredan Mar 22, 2011 6:09 PM (in response to davsclaus)How would you export the bean?
Specifically, what interface would you use in the service registry?
Also, is there a way to look it up using Spring DSL?
-
4. Re: use of ActiveMQ component in Fuse ESB.
njiang Mar 22, 2011 10:48 PM (in response to futuredan)In Camel 2.6.0, camel will look up the ComponentResolver[1] from the OSGi service registry.
You just need to implement this kind of ComponentResolver and export it as an OSGi service, then camel will use it automatically.
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/spi/ComponentResolver.java
Willem