[jboss-osgi-users] How can I start a fragment bundle in JBoss7?

Thomas Diesler thomas.diesler at jboss.com
Tue Jul 31 03:40:28 EDT 2012


> 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 at jboss.com]
> *Sent:* 2012年7月31日15:19
> *To:* ZHANG Rocky F
> *Cc:* jboss-osgi-dev at lists.jboss.org; jboss-osgi-users at 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 <https://issues.jboss.org/browse/AS7> 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 at lists.jboss.org <mailto:jboss-osgi-users at 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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-osgi-users/attachments/20120731/467257a7/attachment.html 


More information about the jboss-osgi-users mailing list