well no matter what the solution, it will always be &quot;remoting&quot; - the only way to not have this would be to unpack the guvnor war, and add in your app mixed in with all the classes etc (messy) - then it would be in the same app/process as Guvnor and you could access it in memory. <div>
<br></div><div>Other than that, it will be remove (even if on the same machine - unless we have some kind of JCR/JNDI thing which I don&#39;t know would do it). </div><div><br></div><div>As for what there is now: yes webdav would be it. Making ServiceImplementation remotable would take a bit of work, yes. </div>
<div><br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 10:04 PM, 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="font-size:11.0pt;color:#1F497D">By the way: ServiceImplementation doesn’t have to be remote in
the first step. If I can access is (without having a Seam application) locally
via Java that would be already a good start and makes it easy to create en EJB
out of it…</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<div>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt">Von:</span></b><span style="font-size:10.0pt"> <a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>] <b>Im Auftrag von </b>Bernd Rücker<br>
<b>Gesendet:</b> Montag, 1. März 2010 09:29</span></p><div class="im"><br>
<b>An:</b> &#39;Rules Dev List&#39;<br>
<b>Betreff:</b> Re: [rules-dev] Accessing JCR repository directly</div><p></p>

</div>

</div>

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

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi Michael.</span></p><div class="im">

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Thanks for the quick answer! </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Our use case at the moment is, that we maintain the HEAD version
of the rules in an own table locally in the app, where we have a specialized
GUI for authoring. As soon as they get released we leveraged the RuleTemplate
to generate a DRL file, which we want to check in Guvnor, from where the
deployment snapshots are created, versioned and so on. So we have to access
Guvnor programmatically (doesn’t have to be JCR).</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">A second nice use case we face is to hang in the Drools
Repository into a bigger JCR-Content-Tree (in the area of ModeShape), so there
JCR would be nice. Then we could use the JCR Explorer, written from one of my
colleagues, to have a look at the repos as well. But okay, this is why we want
to use JCR. </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">But the most important issue is to access the Repository
programmatically from an EJB3. Maybe we could get around classloading isolation
and just access some static stuff for that. Or making the ServiceImplementation
really more generic usable, that would be wonderful as well. But as it sounds
it will take some time and will not be released pretty soon? Then we have to
find another way for now, since if avoidable I don’t want to patch drools. So
you mean I should use the internal Remote Interface the GWT GUI is using? Where
can I find that and how can I create a correct reference?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Or I have to use Webdav, but this looks pretty cumberstone to
use it internally in one JBoss server instead of pure Java mechanisms?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Thanks and cheers</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Bernd</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt">Von:</span></b><span style="font-size:10.0pt">
<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>] <b>Im
Auftrag von </b>Michael Neale<br>
<b>Gesendet:</b> Montag, 1. März 2010 00:27<br>
<b>An:</b> Rules Dev List<br>
<b>Betreff:</b> Re: [rules-dev] Accessing JCR repository directly</span></p>

</div>

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

</div><p class="MsoNormal">Hi Bernd. yes you have it correctly - seam starts things
up. </p><div><div></div><div class="h5">

<div>

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

</div>

<div>

<p class="MsoNormal">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. </p>

</div>

<div>

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

</div>

<div>

<p class="MsoNormal">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). </p>

</div>

<div>

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

</div>

<div>

<p class="MsoNormal">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? </p>

</div>

<div>

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

</div>

<div>

<p class="MsoNormal">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). </p>

</div>

<div>

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

</div>

<div>

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

</div>

<div>

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

<div>

<p class="MsoNormal">On Sun, Feb 28, 2010 at 4:53 AM, Bernd Rücker &lt;<a href="mailto:bernd.ruecker@camunda.com" target="_blank">bernd.ruecker@camunda.com</a>&gt;
wrote:</p>

<div>

<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">www.bpm-guide.de</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>

<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">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></p>

</div>

<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Michael D Neale<br>
home: <a href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a><br>
blog: <a href="http://michaelneale.blogspot.com" target="_blank">michaelneale.blogspot.com</a></p>

</div>

</div></div></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>