<br><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 4:45 PM, Thomas Heute <span dir="ltr">&lt;<a href="mailto:theute@redhat.com">theute@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




  

<div text="#000000" bgcolor="#ffffff"><div class="im">
On 02/23/2010 04:40 PM, Nicolas Filotto wrote:
<blockquote type="cite">If so it means that you need to enforce the dependency
of ExoKernelIntegration
with org.exoplatform.services.jcr.config.RepositoryServiceConfiguration,
since it is the service that is in charge of creating JCR repositories
and workspaces, so If you enforce the dependency, you will ask
PicoContainer to create and start this component before your component.
To do so just add RepositoryServiceConfiguration in your constructor as
below:
  <div>..</div>
  <div>public ExoKernelIntegration(RepositoryServiceConfiguration rsc)</div>
  <div>{</div>
  <div>...</div>
  <div>}</div>
  <div>..</div>
</blockquote>
<br></div>
After seeing this noone can tell anything good about Picocontainer ;)</div></blockquote><div>This has nothing to do with PicoContainer, it is due to the fact that Picocontainer needs to manage the live-cycle of all the components to be able to manage the dependencies properly and obviously in your case, ExoKernelIntegration has indirect dependencies that are not managed by Picocontainer, so for me it could be due to 2 potential reasons:</div>

<div><ol><li>The integration is not done properly</li><li>The integration is done properly but indirect dependencies are only side effects of the integration of a non Pico aware component such as the issue with the integration of the PC and the ResourceBundleService.</li>

</ol></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff"><div><div></div><div class="h5"><br>
<br>
<blockquote type="cite">
  <div><br>
  </div>
  <div>Please note that RepositoryServiceConfiguration will create all
the repositories and workspaces in its start method </div>
  <div><br>
  <div class="gmail_quote">On Tue, Feb 23, 2010 at 4:20 PM, Matthew
Wringe <span dir="ltr">&lt;<a href="mailto:mwringe@redhat.com" target="_blank">mwringe@redhat.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
    <div>On Tue, 2010-02-23 at 16:02 +0100, Nicolas Filotto
wrote:<br>
&gt; Could you please fully describe the problem you met, to allow us to<br>
&gt; give you the best solution.<br>
    <br>
    </div>
WSRP is setup using the ExoKernelIntegration. This is a java class that<br>
hardcodes the wsrp wiring. As part of the wiring it needs to get access<br>
to the &#39;repository&#39; jcr repository.<br>
    <br>
The &#39;repository&#39; jcr repo is setup in an external-plugin-configuration<br>
(portal/src/main/webapp/WEB-INF/conf/jcr/component-plugins-configuration.xml).<br>
    <br>
If we use the Sun JDK then everything works fine and the<br>
external-plugin-configuration gets called before the<br>
ExoKernelIntegration. WSRP can find the jcr repository it needs.<br>
    <br>
If we use the IBM JDK, then the ordering is different and the wsrp<br>
ExoKernelIntergration will fail because it can&#39;t find the jcr<br>
&#39;repository&#39; repo.<br>
    <br>
I want to be able to tell the wsrp setup to wait until after the jcr<br>
specific external-plugin-configuration has been called. Right now we<br>
don&#39;t specify that, and its probably just by chance that it works with<br>
the Sun JDK right now.<br>
    <div>
    <div><br>
    <br>
&gt; On Tue, Feb 23, 2010 at 3:42 PM, Matthew Wringe &lt;<a href="mailto:mwringe@redhat.com" target="_blank">mwringe@redhat.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         In WSRP we need to depend on an
external-plugin-configuration<br>
&gt;         to setup<br>
&gt;         the &#39;repository&#39; repo in jcr. WSRP is configured using the<br>
&gt;         ExoKernelIntergration.<br>
&gt;<br>
&gt;         Is there anyway to make the wcrp configuration happen after<br>
&gt;         the<br>
&gt;         external-plugin-configuration has occured?<br>
&gt;<br>
&gt;         The issue only occurs when using the IBM jdk and not the
Sun<br>
&gt;         one.<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         gatein-dev mailing list<br>
&gt;         <a href="mailto:gatein-dev@lists.jboss.org" target="_blank">gatein-dev@lists.jboss.org</a><br>
&gt;         <a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Nicolas Filotto<br>
&gt; JCR Product Manager<br>
&gt; Project Manager<br>
&gt; eXo Platform SAS<br>
&gt; <a href="mailto:nicolas.filotto@exoplatform.com" target="_blank">nicolas.filotto@exoplatform.com</a><br>
&gt; +33 (0)6 31 32 92 19<br>
    <br>
    <br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Nicolas Filotto<br>
JCR Product Manager<br>
Project Manager<br>
eXo Platform SAS<br>
  <a href="mailto:nicolas.filotto@exoplatform.com" target="_blank">nicolas.filotto@exoplatform.com</a><br>
+33 (0)6 31 32 92 19  <br>
  </div>
  <pre><fieldset></fieldset>
_______________________________________________
gatein-dev mailing list
<a href="mailto:gatein-dev@lists.jboss.org" target="_blank">gatein-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/gatein-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/gatein-dev</a>
  </pre>
</blockquote>
<br>
</div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br>Nicolas Filotto<br>JCR Product Manager<br>Project Manager<br>eXo Platform SAS<br><a href="mailto:nicolas.filotto@exoplatform.com">nicolas.filotto@exoplatform.com</a><br>+33 (0)6 31 32 92 19  <br>