> Do you mean I can define a fragment bundle as a capability also in JBoss just as host bundles?

Yes, this should work. We used to do this with our JBoss branding fragment for the Felix Webconsole.

> make sure fragment bundle be started

By definition, fragments cannot be started. You assign a startlevel to the host. The fragment attaches when the host gets resolved.

--thomas

On 07/31/2012 09:28 AM, ZHANG Rocky F wrote:

Thomas,

 

I am using JBoss 7.1.0.final.

Do you mean I can define a fragment bundle as a capability also in JBoss just as host bundles?

Can I also assign a startlevel to such a capability to make sure fragment bundle be started before its host bundle?

 

Thanks,
Rocky


From: Thomas Diesler [mailto:thomas.diesler@jboss.com]
Sent: 2012
731 15:19
To: ZHANG Rocky F
Cc: jboss-osgi-dev@lists.jboss.org; jboss-osgi-users@lists.jboss.org
Subject: Re: [jboss-osgi-users] How can I start a fragment bundle in JBoss7?

 

Both approaches should work. Which version of AS are we talking about?
Please create a jira issue issue if you should also see this with 7.1.2.
The debug log should give detailed enough information to tell whats going on.

cheers
-thomas

On 07/30/2012 10:16 AM, ZHANG Rocky F wrote:

Hi all,

 

I am using JBoss to manage my OSGi bundles.

I have tried to bring my bundles as capabilities in standalone.xml as below:

<capability name="com.xxx.logger" startlevel="4"/>

No problem.

 

But when I try to deploy a fragment bundle whose host bundle is deployed as capability,

I have tried the following two ways, but neither succeed.

1) deploy the fragment bundle also as a capability without a startlevel.

2) put the fragment bundle into deployments directory of standalone.

 

Anyone can instruct me about how to do?

 

Thanks you very much!

 

Thanks,

Rocky

 

 




_______________________________________________
jboss-osgi-users mailing list
jboss-osgi-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-osgi-users



-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx 

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx