<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <small><tt>&gt; Do you mean I can define a fragment bundle as a
        capability also in JBoss just as host bundles?<br>
        <br>
        Yes, this should work. We used to do this with our JBoss
        branding fragment for the Felix Webconsole.<br>
        <br>
        &gt; make sure fragment bundle be started<br>
        <br>
        By definition, fragments cannot be started. You assign a
        startlevel to the host. The fragment attaches when the host gets
        resolved.<br>
        <br>
        --thomas<br>
        <br>
      </tt></small>
    <div class="moz-cite-prefix">On 07/31/2012 09:28 AM, ZHANG Rocky F
      wrote:<br>
    </div>
    <blockquote
      cite="mid:89BC77777E1CEB46AF9E65B0E17E1575011BAF1C@cnshjmbx01"
      type="cite">
      <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]-->
        <div class="Section1">
          <p class="MsoNormal"><font color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US">Thomas,<o:p></o:p></span></font></p>
          <p class="MsoNormal"><font color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
          <p class="MsoNormal"><font color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US">I am using JBoss 7.1.0.final.<o:p></o:p></span></font></p>
          <p class="MsoNormal"><font color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US">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 color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US">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 color="navy" face="Arial" size="1"><span
                style="font-size:9.0pt;font-family:Arial;color:navy"
                lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
          <div>
            <p><font color="navy" face="Arial" size="2"><span
                  style="font-size:10.0pt;
                  font-family:Arial;color:navy" lang="EN-US">Thanks,
                </span></font><font color="navy"><span
                  style="color:navy" lang="EN-US"><br>
                </span></font><font color="navy" face="Arial" size="2"><span
                  style="font-size:10.0pt;font-family:Arial;color:navy"
                  lang="EN-US">Rocky</span></font><font color="navy"><span
                  style="color:navy" lang="EN-US">
                </span></font><span lang="EN-US"><o:p></o:p></span></p>
          </div>
          <div>
            <div class="MsoNormal" style="text-align:center"
              align="center"><font color="black" face="Times New Roman"
                size="3"><span style="font-size:12.0pt;
                  color:windowtext" lang="EN-US">
                  <hr tabindex="-1" align="center" size="2" width="100%">
                </span></font></div>
            <p class="MsoNormal"><b><font color="black" face="Tahoma"
                  size="2"><span
style="font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold"
                    lang="EN-US">From:</span></font></b><font
                color="black" face="Tahoma" size="2"><span
                  style="font-size:10.0pt;
                  font-family:Tahoma;color:windowtext" lang="EN-US">
                  Thomas Diesler [<a class="moz-txt-link-freetext" href="mailto:thomas.diesler@jboss.com">mailto:thomas.diesler@jboss.com</a>] <br>
                  <b><span style="font-weight:bold">Sent:</span></b>
                  2012</span></font><font color="black" face="宋体"
                size="2"><span style="font-size:10.0pt;
                  font-family:SimSun;color:windowtext">年</span></font><font
                color="black" face="Tahoma" size="2"><span
                  style="font-size:10.0pt;font-family:
                  Tahoma;color:windowtext" lang="EN-US">7</span></font><font
                color="black" face="宋体" size="2"><span
                  style="font-size:10.0pt;font-family:SimSun;color:windowtext">月</span></font><font
                color="black" face="Tahoma" size="2"><span
                  style="font-size:10.0pt;
                  font-family:Tahoma;color:windowtext" lang="EN-US">31</span></font><font
                color="black" face="宋体" size="2"><span
                  style="font-size:10.0pt;font-family:SimSun;
                  color:windowtext">日</span></font><font color="black"
                face="Tahoma" size="2"><span
                  style="font-size:10.0pt;font-family:Tahoma;color:windowtext"
                  lang="EN-US"> 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"><a class="moz-txt-link-abbreviated" href="mailto:jboss-osgi-dev@lists.jboss.org">jboss-osgi-dev@lists.jboss.org</a></st1:personname>;
                  <st1:personname w:st="on"><a class="moz-txt-link-abbreviated" href="mailto:jboss-osgi-users@lists.jboss.org">jboss-osgi-users@lists.jboss.org</a></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
                  style="color:windowtext" lang="EN-US"><o:p></o:p></span></font></p>
          </div>
          <p class="MsoNormal"><font color="black" face="Times New
              Roman" size="3"><span style="font-size:12.0pt"
                lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><tt><font
                color="black" face="Courier New" size="2"><span
                  style="font-size:10.0pt" lang="EN-US">Both approaches
                  should work. Which version of AS are we talking about?</span></font></tt><font
              face="Courier New" size="2"><span
                style="font-size:10.0pt;font-family:
                &quot;Courier New&quot;" lang="EN-US"><br>
                <tt><font face="Courier New">Please create a <a
                      moz-do-not-send="true"
                      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 color="black" face="Times New
                Roman" size="3"><span style="font-size:12.0pt"
                  lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">Hi all,<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">&nbsp;<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">&lt;capability
                  name="com.xxx.logger" startlevel="4"/&gt;<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">No problem.<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">&nbsp;<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Times New Roman" size="2"><span
                  style="font-size:
                  10.5pt" lang="EN-US">&nbsp;</span></font><font face="Arial"
                size="1"><span style="font-size:9.0pt;font-family:Arial"
                  lang="EN-US"><o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">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
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">&nbsp;<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Arial" size="1"><span
                  style="font-size:9.0pt;
                  font-family:Arial" lang="EN-US">Thanks you very much!<o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Times New Roman" size="2"><span
                  style="font-size:
                  10.5pt" lang="EN-US">&nbsp;</span></font><font face="Arial"
                size="1"><span style="font-size:9.0pt;font-family:Arial"
                  lang="EN-US"><o:p></o:p></span></font></p>
            <div>
              <p class="MsoNormal"><font color="black" face="Arial"
                  size="2"><span
                    style="font-size:10.0pt;font-family:Arial"
                    lang="EN-US">Thanks,
                  </span></font><font face="Arial" size="1"><span
                    style="font-size:9.0pt;font-family:Arial"
                    lang="EN-US"><o:p></o:p></span></font></p>
            </div>
            <div>
              <p class="MsoNormal"><font color="black" face="Arial"
                  size="2"><span
                    style="font-size:10.0pt;font-family:Arial"
                    lang="EN-US">Rocky</span></font><font face="Arial"
                  size="1"><span
                    style="font-size:9.0pt;font-family:Arial"
                    lang="EN-US"><o:p></o:p></span></font></p>
            </div>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Times New Roman" size="2"><span
                  style="font-size:
                  10.5pt" lang="EN-US">&nbsp;</span></font><font face="Arial"
                size="1"><span style="font-size:9.0pt;font-family:Arial"
                  lang="EN-US"><o:p></o:p></span></font></p>
            <p class="MsoNormal"
              style="text-align:justify;text-justify:inter-ideograph"><font
                color="black" face="Times New Roman" size="2"><span
                  style="font-size:
                  10.5pt" lang="EN-US">&nbsp;</span></font><font face="Arial"
                size="1"><span style="font-size:9.0pt;font-family:Arial"
                  lang="EN-US"><o:p></o:p></span></font></p>
            <p class="MsoNormal"><font color="black" face="Times New
                Roman" size="3"><span style="font-size:12.0pt"
                  lang="EN-US"><br>
                  <br>
                  <br>
                </span></font></p>
            <font color="black" face="Times New Roman" size="3">
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <o:p></o:p></font>
            <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">_______________________________________________<o:p></o:p></span></font></pre>
            <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">jboss-osgi-users mailing list<o:p></o:p></span></font></pre>
            <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US"><a moz-do-not-send="true" href="mailto:jboss-osgi-users@lists.jboss.org">jboss-osgi-users@lists.jboss.org</a><o:p></o:p></span></font></pre>
            <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US"><a moz-do-not-send="true" 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 color="black" face="Times New
              Roman" size="3"><span style="font-size:12.0pt"
                lang="EN-US"><br>
                <br>
                <o:p></o:p></span></font></p>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">-- <o:p></o:p></span></font></pre>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">xxxxxxxxxxxxxxxxxxxxxxxxxxxx<o:p></o:p></span></font></pre>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">Thomas Diesler<o:p></o:p></span></font></pre>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">JBoss OSGi Lead<o:p></o:p></span></font></pre>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">JBoss, a division of Red Hat<o:p></o:p></span></font></pre>
          <pre><font color="black" face="Courier New" size="2"><span style="font-size:10.0pt" lang="EN-US">xxxxxxxxxxxxxxxxxxxxxxxxxxxx <o:p></o:p></span></font></pre>
        </div>
      </o:smarttagtype></blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
</pre>
  </body>
</html>