Hi Bernd. yes you have it correctly - seam starts things up. <div><br></div><div>IN terms of accessing JCR directly, this came up before and one idea was to use the &quot;remote&quot; JCR interface - that means some refactoring I guess. </div>
<div><br></div><div>So the basic design is that there is a JCR server that starts up, and the &quot;clients&quot; connect remotely (a client in this case is also the Guvnor server side). </div><div><br></div><div>That way you can access it from multiple places. However, it may be a bit too low level for this - the question is what do you want to access JCR for from your external app? </div>
<div><br></div><div>A better approach, is to make the ServiceImplementation a true remote interface (at the moment it is, but for GWT clients only) - so ANY sort of client can connect and access the guvnor services, without messing with low level data structures - I am thinking the latter is the superior approach (and someone else was looking at it). </div>
<div><br></div><div>Michael.</div><div><br><div class="gmail_quote">On Sun, Feb 28, 2010 at 4:53 AM, Bernd Rücker <span dir="ltr">&lt;<a href="mailto:bernd.ruecker@camunda.com">bernd.ruecker@camunda.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 lang="DE" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hey guys.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I thought I better
ask that question on the dev list, correct me if that was a bad choice ;-)</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I want to programmatically
access the JCR repository from another application (basically to author rules).
I understood the RulesRepository (which is a nice interface by the way).  I
tried to understand how the JCR Session is created and can be accessed. As far
as I found it, it seems that a Seam Bean just starts everything (RulesRepositoryManager).
 Now the question is: How can I access this from another application? Because
the workspace is locked, I cannot create another Session from there.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Wouldn’t it be
nice to bind the stuff in JNDI correctly or something like that? Or if I do
that, can I inject it into the Seam application? Or maybe I can access the seam
bean somehow from external?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I think it would be
the easiest and best to access the JCR repos instead of using WebDav or
whatever if I am in another EJB3 application…</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks a lot for any
hint</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Cheers</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Bernd</span></p>

<p class="MsoNormal"><span style="color:#1F497D">--</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Blog: <u><a href="http://www.bpm-guide.de" target="_blank"><span style="color:blue">www.bpm-guide.de</span></a></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">---------------------------------------------</span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">camunda services GmbH
- The Business Process Company</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Zossener Straße 55-58 - 10961
Berlin</span></p>

<p class="MsoNormal"><span style="color:#1F497D"><a href="http://www.camunda.com" target="_blank"><span style="color:#1F497D">www.camunda.com</span></a> - <a href="mailto:info@camunda.com" target="_blank"><span style="color:#1F497D">info@camunda.com</span></a></span></p>


<p class="MsoNormal"><span style="color:#1F497D">---------------------------------------------</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Bernd Rücker</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Geschäftsführer</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Telefon +49 30 664040 901</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Mobil +49 171 1473461</span></p>

<p class="MsoNormal"><span style="color:#1F497D"><a href="mailto:bernd.ruecker@camunda.com" target="_blank"><span style="color:#1F497D">bernd.ruecker@camunda.com</span></a></span></p>

<p class="MsoNormal"><span style="color:#1F497D">---------------------------------------------</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Amtsgericht Charlottenburg: HRB
113230 B</span></p>

<p class="MsoNormal"><span style="color:#1F497D">Geschäftsführer: Jakob Freund,
Bernd Rücker</span></p>

<p class="MsoNormal"><span style="color:#1F497D">---------------------------------------------</span></p>

<p class="MsoNormal"><span style="color:#1F497D">BPMN-Buch: <a href="http://www.hanser.de/buch.asp?isbn=978-3-446-41768-7" target="_blank"><span style="color:#1F497D">http://www.hanser.de/buch.asp?isbn=978-3-446-41768-7</span></a>
</span></p>

<p class="MsoNormal"><span style="color:#1F497D">EJB-3-Buch: <a href="http://www.ejbbuch.de/" target="_blank"><span style="color:#1F497D">http://www.ejbbuch.de/</span></a></span></p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net">www.michaelneale.net</a><br>blog: <a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a><br>

</div>