I am not sure if I totally understand what you are saying, but if you want your plugin to work with different implementations at the same time, then you need to make sure that all implementations and your plugin use the same JMS API packages. There are generally two ways to do this:

  1. Have all of your impls include the API packages and both import
     and export them.
  2. Separate the API packages into a separate bundle and have all your
     impls and plugins import them.

If you are already doing one of these approaches, then I guess I don't understand your situation.

-> richard

On 6/4/09 7:56 AM, Daniel Dumitrescu wrote:
Hi guys

I'm really new on this mailing list, so I say hello to all.

I'm facing a problem that may seems pretty simple. but in the last couple of weeks it driven me crazy:

I want to have a plugin working with different implementations of javax.jms package (all the libs and stuff) from different providers, like JBoss, ActiveMQ and so on, and also I want to separate these different implementations in different OSGi bundles, that may be used by my plugin.

This package, javax.jms. and another one, like another one, my.package.myinterface are exported by the satellite bundles (the ones with different JMS imlpementations) and imported into this main plugin that works with them.

The weird thing is that when i try to start this main plugin only one of the satellite plugins is spawned (installed & started), and i need all the plugins to start up. Also, it seems that the class path somehow mixes up, although it seems that every plugin has its own classloader.

In my main plugin i don;t have anything like "require-bundle" things, just import javax.jms and my.package.myinterface.

Did i do something wrong, or the OSGi specifications are this way?

Can anyone help me?

Thanx & regards,
Daniel
------------------------------------------------------------------------

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to