Hi,

I am trying to figure out how we can manage to run in Felix several versions
of the same component that is using iPojo.

iPojo use a component name to create component instances.

My problem is that with the time some components will evolve and there
version number will increase. The old version can remain used as mandatory
dependency by other bundles. So we will have to start several versions of
the same component.
I have noticed that if I set a different name for each component (for
example I add the version number into the component name) everything just go
fine.

But, I think that it's not a good practice to rename the component name
given in the @Component annotation each time a new release is out. And in my
case, it’s quite impossible.

I would like know how it’s possible to manage this case using iPojo.

To help understanding better my concern, I have made a test case.
It is composed of two OSGi bundles. (module and plugin).
module is somewhat a container of plugins.

In my test case, I have module V1.0, plugin V1.0
and module V2.0, plugin V2.0

The test consists of starting those four OSGi bundles and see what happens.
As the components are named identically ModuleManager and MyPlugin for V1.0
and V2.0, the component of one bundle is instantiated twice.

To launch the test case, just type "mvn install" in v1 and v2.
And then type "./run.sh" in the Felix directory. You will see what happens.

Don't hesitate to tell me if I am not so clear in my explanations.

Regards,
/Etienne
http://www.nabble.com/file/p23544877/ipojo-component-testcase.tar.gz
ipojo-component-testcase.tar.gz 
-- 
View this message in context: 
http://www.nabble.com/iPojo---How-to-create-several-instances-of-the-same-component-installed-in-different-versions-tp23544877p23544877.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to