<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:SimSun;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {font-family:"Courier New";}
p.emailquote, li.emailquote, div.emailquote
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="ZH-CN" link="blue" vlink="blue">
<div class="Section1">
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Thomas,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">I am using JBoss 7.1.0.final.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Do you mean I can define a fragment bundle as a capability also in JBoss just as host bundles?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Can I also assign a startlevel to such a capability to make sure fragment bundle be started before its host bundle?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>
<div>
<p><font size="2" color="navy" face="Arial"><span lang="EN-US" style="font-size:10.0pt;
font-family:Arial;color:navy">Thanks,
</span></font><font color="navy"><span lang="EN-US" style="color:navy"><br>
</span></font><font size="2" color="navy" face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial;color:navy">Rocky</span></font><font color="navy"><span lang="EN-US" style="color:navy">
</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;
color:windowtext">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold">From:</span></font></b><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;
font-family:Tahoma;color:windowtext">
 Thomas Diesler [mailto:thomas.diesler@jboss.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> 2012</span></font><font size="2" color="black" face="宋体"><span style="font-size:10.0pt;
font-family:SimSun;color:windowtext">年</span></font><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:
Tahoma;color:windowtext">7</span></font><font size="2" color="black" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;color:windowtext">月</span></font><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;
font-family:Tahoma;color:windowtext">31</span></font><font size="2" color="black" face="宋体"><span style="font-size:10.0pt;font-family:SimSun;
color:windowtext">日</span></font><font size="2" color="black" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;color:windowtext">
 15:19<br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">ZHANG Rocky F</st1:PersonName><br>
<b><span style="font-weight:bold">Cc:</span></b> <st1:PersonName w:st="on">jboss-osgi-dev@lists.jboss.org</st1:PersonName>;
<st1:PersonName w:st="on">jboss-osgi-users@lists.jboss.org</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [jboss-osgi-users] How can I start a fragment bundle in JBoss7?</span></font><font color="black"><span lang="EN-US" style="color:windowtext"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p>&nbsp;</o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><tt><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">Both approaches should work. Which version of AS are we talking about?</span></font></tt><font size="2" face="Courier New"><span lang="EN-US" style="font-size:10.0pt;font-family:
&quot;Courier New&quot;"><br>
<tt><font face="Courier New">Please create a <a href="https://issues.jboss.org/browse/AS7">
jira issue</a> issue if you should also see this with 7.1.2.</font></tt><br>
<tt><font face="Courier New">The debug log should give detailed enough information to tell whats going on.</font></tt><br>
<br>
<tt><font face="Courier New">cheers</font></tt><br>
<tt><font face="Courier New">-thomas</font></tt></span></font><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">On 07/30/2012 10:16 AM,
<st1:PersonName w:st="on">ZHANG Rocky F</st1:PersonName> wrote:<o:p></o:p></span></font></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" cite="mid:89BC77777E1CEB46AF9E65B0E17E1575011BAAEC@cnshjmbx01" type="cite">
<!-- converted from rtf -->
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">Hi all,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">&nbsp;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">I am using JBoss to manage my OSGi bundles.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">I have tried to bring my bundles as capabilities in standalone.xml as below:<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">&lt;capability name=&quot;com.xxx.logger&quot; startlevel=&quot;4&quot;/&gt;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">No problem.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">&nbsp;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">But when I try to deploy a fragment bundle whose host bundle is deployed as
 capability,<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">I have tried the following two ways, but neither succeed.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">1) deploy the fragment bundle also as a capability without a startlevel.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">2) put the fragment bundle into deployments directory of standalone.<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="2" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:
10.5pt">&nbsp;</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">Anyone can instruct me about how to do?<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">&nbsp;<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="1" color="black" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial">Thanks you very much!<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="2" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:
10.5pt">&nbsp;</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="2" color="black" face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Thanks,
</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="2" color="black" face="Arial"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial">Rocky</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="2" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:
10.5pt">&nbsp;</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><font size="2" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:
10.5pt">&nbsp;</span></font><font size="1" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><br>
<br>
<br>
</p>
<fieldset class="mimeAttachmentHeader"></fieldset><o:p></o:p></span></font>
<p></p>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">_______________________________________________<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">jboss-osgi-users mailing list<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt"><a href="mailto:jboss-osgi-users@lists.jboss.org">jboss-osgi-users@lists.jboss.org</a><o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt"><a href="https://lists.jboss.org/mailman/listinfo/jboss-osgi-users">https://lists.jboss.org/mailman/listinfo/jboss-osgi-users</a><o:p></o:p></span></font></pre>
</blockquote>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><br>
<br>
<o:p></o:p></span></font></p>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">-- <o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">xxxxxxxxxxxxxxxxxxxxxxxxxxxx<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">Thomas Diesler<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">JBoss OSGi Lead<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">JBoss, a division of Red Hat<o:p></o:p></span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span lang="EN-US" style="font-size:10.0pt">xxxxxxxxxxxxxxxxxxxxxxxxxxxx <o:p></o:p></span></font></pre>
</div>
</body>
</html>