Tomasz Prus wrote:I have some experience with Mule ESB, i would like to know if OSGi can be usefull for such purposes? What are differences beetween ESB systems and OSGi?
ESBs (especially the flavor of ESB like Mule) is really more about integrating various systems in an enterprise in a loosely-coupled way. An example scenario might be that when an order arrives in a queue, a series of other events kick off to process that order in other systems.
OSGi is more about taking discrete components of an application and breaking them into their own individual deployment units. But unlike a typical ESB scenario, these components are deployed in the same VM.
In that regard, OSGi can be thought of as solving the same kinds of problems that Spring solves, only at a more coarse-grained level.
That said, ESBs and OSGi aren't mutually exclusive. Take ServiceMix, for instance, which bases its ESB on the ServiceMix Kernel (which is, in fact, an OSGi framework).