Hi Richard

 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.
>
>
Yep, already done it. I have like , let's say three satellite bundles, s1,
s2 and s3 and all three of them import and export both APIs, javax.jms and
my.package.myinterface. Also the main bundle taht uses them imports both of
APIs.


>
>    1.
>    2. Separate the API packages into a separate bundle and have all your
>    impls and plugins import them.
>
> I guess this one i haven't try. Your advice is to include the javax-jms.jar
and myinterface.jar into a separate bundle that it will be like "require
bundle" to all my other bundles?

I think this i have to try. Until now these jars were packed with all
bundles (and , of course, shared between them)

I'll try also this one, and i'll get back to you.

Thanx & regards,
Daniel


>
> -> 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 
> [email protected]https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> 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