Search code examples
apache-camelactivemq-classicosgi-bundleapache-servicemix

Different ways to communicate between OSGi bundles in servicemix


What are different ways to communicate between two OSGi bundles in ServiceMix other than using ActiveMQ.


Solution

  • OSGi services, EventAdmin, REST/SOAP, direct/seda in-memory endpoints in a Camel route.. 100's of other options.

    Edit: A good way to think about bundles is that they are just "jars" of Java classes. If you want to do any interprocess communication, you need something to start-up or initialize the classes and then decide what appropriate interprocess communication best suits your use case. OSGi Services are good for things that do not need to go across a wire or between two servers. blueprint.xml provides a Spring-bean-like way of starting classes and other options include the REST/SOAP.. etc.