In my case, the functional test bundle does depend on bundles that implement 
the functionality. All works well if I 1) just have 1 features.xml, 2) add 
features_funcTest.xml file in deploy folder after the other bundles are loaded, 
3) rename the features file, so original features.xml is loaded first.

Thanks!

From: Freeman-2 [via Karaf] 
[mailto:[email protected]]
Sent: Tuesday, August 09, 2011 8:09 AM
To: Bhasin, Vishal - Dell Team
Subject: Re: Loading bundles in specific order with 2 feature xml config in 
deploy folder

Hi,

Your logic shouldn't rely on bundle start sequence, this is best practice in 
OSGi world.
The only way I know can guarantee one bundle(A) fully started before another 
one(bundleB) is  that bundle A export an OSGi service and bundle B refer this 
OSGi service.

Freeman
On 2011-8-9, at 下午8:52, vbhasin wrote:


Hello Andreas - Thanks for your response - this is surely a problem..What is 
the point of having a start level then? Are you familiar with any workarounds 
(except for adding all features in 1 file)?


From: Andreas Pieber [via Karaf] [[hidden 
email]</user/SendEmail.jtp?type=node&node=3238899&i=0>]
Sent: Tuesday, August 09, 2011 5:12 AM
To: Bhasin, Vishal - Dell Team
Subject: Re: Loading bundles in specific order with 2 feature xml config in 
deploy folder

Hey,

This is a "problem" in the OSGi spec. You cannot gurantee when which bundle 
will be started. Even if you configure the start level you cannot gurantee that 
the bundle is completely started.

Kind regards,
Andreas
On Mon, Aug 1, 2011 at 21:34, vbhasin <[hidden 
email]</user/SendEmail.jtp?type=node&node=3238470&i=0>> wrote:
Hello All:

I'm using Fuse 4.3.0-fuse-02-00 and would like to load functional test
bundle via a 2nd features.xml (called features_functest.xml) file in deploy
folder. This test bundle depends on main feature, which is loaded via
features.xml file (in deploy folder).

I get the issue of feature_functest.xml being loaded prior to features.xml
while starting servicemix.

How can I ensure that functional test bundle ALWAYS load after the main
feature?

I tried setting the start level to 200, but it didn't work..

Thanks!

--
View this message in context: 
<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>
---------------------------------------------<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>
Freeman 
Fang<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>


<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>
FuseSource<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>
Email:<%20this%20message%20in%20context:%20http:/karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238849.html%3cbr%3eSent%20from%20the%20Karaf%20-%20User%20mailing%20list%20archive%20at%20Nabble.com.%3cbr%3e%3c/div%3e%3c/blockquote%3e%3c/div%3e%3cbr%3e%3cdiv%20apple-content-edited=>[hidden
 email]</user/SendEmail.jtp?type=node&node=3238899&i=1>[hidden 
email]</user/SendEmail.jtp?type=node&node=3238899&i=2>
Web: fusesource.com<http://fusesource.com/>
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










________________________________
If you reply to this email, your message will be added to the discussion below:
http://karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238899.html
To unsubscribe from Loading bundles in specific order with 2 feature xml config 
in deploy folder, click 
here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3216832&code=dmlzaGFsX2JoYXNpbkBkZWxsdGVhbS5jb218MzIxNjgzMnwxNTU4Njk2NTk2>.


--
View this message in context: 
http://karaf.922171.n3.nabble.com/Loading-bundles-in-specific-order-with-2-feature-xml-config-in-deploy-folder-tp3216832p3238996.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to