Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Multiple version of bundle OSGI / BluePrint
Multiple version of bundle OSGI / BluePrint [message #1015232] Wed, 27 February 2013 15:34
etherny etherny is currently offline etherny etherny
Messages: 9
Registered: February 2013
Junior Member
Same as http://www.eclipse.org/forums/index.php/t/457572/.
Sorry posted twice


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 08:52]

Report message to a moderator

Previous Topic:SpringBlueprintConverterService$BlueprintConverterException with generics
Next Topic:Multiple version of bundle OSGI / BluePrint
Goto Forum:
  


Current Time: Mon Jul 28 18:36:17 EDT 2014

Powered by FUDForum. Page generated in 0.02178 seconds