Multiple version of bundle OSGI / BluePrint [message #1015275] |
Thu, 28 February 2013 02:09 |
etherny etherny Messages: 9 Registered: February 2013 |
Junior Member |
|
|
Question about : OSGI / BluePrint
Hi all, i have try to launch a multiple instance of a bundle but with a different version.
The first blueprint config in the bundle version 1.0.0
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="">
<bean id="launcher1" init-method="start" destroy-method="stop" class="com.test.Test">
</bean>
</blueprint>
The second in the bundle version 2.0.0
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="">
<bean id="launcher2" init-method="start" destroy-method="stop" class="com.test.Test">
</bean>
</blueprint>
Start method of V1 bundle
public void start()
{
System.out.println("START");
}
Start method of V2 bundle
public void start()
{
System.out.println("START V2");
}
when i start virgo, the two bundles are launched, but call V1 Start method twice.
V1 manifest :
Manifest-Version: 1.0
Bundle-Version: 1.0.0
Bundle-Name: BundleTest
Bundle-ManifestVersion: 2
Bundle-SymbolicName: BundleTest
Export-Package: com.test;version="1.0.0"
V2 manifest :
Manifest-Version: 1.0
Bundle-Version: 2.0.0
Bundle-Name: BundleTest
Bundle-ManifestVersion: 2
Bundle-SymbolicName: BundleTest
Export-Package: com.test;version="2.0.0"
thx for your help.
[Updated on: Thu, 28 February 2013 13:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04030 seconds