Thanks Mike for your comments. I did look at JBoss Rails and it was very interesting.<div><br></div><div>Out here, we have a core Ruby application that cannot be ported (easily enough) to JRuby. We are planning to introduce a rule engine into the mix.</div>
<div>The idea possibly is to inject the ruby object from the master application via a queue (Stomp?). Another JRuby app (which encapsulates Drools), would pick up the ruby object, use the Spring scaffolding as discussed in this thread to present to the rule engine as a java object.</div>
<div>At the end of rule invocation, the JRuby app would post the object back to the queue to return to the master application.</div><div><br></div><div>We could possibly use JBoss Rails for the JRuby app that we would have to build.</div>
<div><br clear="all">Regards,<br>Prem<br>
<br><br><div class="gmail_quote">2009/3/20 Anstis, Michael (M.) <span dir="ltr"><<a href="mailto:manstis1@ford.com">manstis1@ford.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">I read that JBoss AS supports JRuby classes running in the
JVM...</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"><a href="http://oddthesis.org/posts/2009-03-jboss-rails-1-0-0-beta4-in-time-for-the-weekend" target="_blank">http://oddthesis.org/posts/2009-03-jboss-rails-1-0-0-beta4-in-time-for-the-weekend</a></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Whilst I haven't used it nor read about it in detail
perhaps this is something that might be of interest.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">With kind regards,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Mike</font></span></div><br>
<blockquote style="margin-right:0px">
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Edson
Tirelli<br><b>Sent:</b> 19 March 2009 16:06<br><b>To:</b> Rules Users
List<br><b>Subject:</b> Re: [rules-users] Inserting a JRuby object via Spring
JRubyScriptFactory in Drools<br></font><br></div><div><div></div><div class="h5">
<div></div><br> Drools always looks for getters/setters, never for
the actual internal attribute. <br><br> As long as you have an
instance of a given interface and your rules are written against the interface
you should be fine in Drools 5.<br><br> Drools 4 used shadow
facts, so, there would be more considerations to make on drools
4.<br><br> []s<br> Edson<br><br>
<div class="gmail_quote">2009/3/19 Premkumar Stephen <span dir="ltr"><<a href="mailto:prem18@gmail.com" target="_blank">prem18@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0pt 0pt 0pt 0.8ex;border-left:rgb(204,204,204) 1px solid">Hello
Folks,
<div><br></div>
<div>I have been looking at options of using ruby objects as fact objects in
Drool's working memory.</div>
<div><br></div>
<div>One obvious way is using services.</div>
<div><br></div>
<div>Another path that I have been researching about is to use Spring as
outlined here <a href="http://www.jroller.com/habuma/entry/spring_meet_ruby" target="_blank">http://www.jroller.com/habuma/entry/spring_meet_ruby</a> </div>
<div><br></div>
<div>Now, in this example, if the Lime ruby object were like a POJO,
(contains fields), will I be able to insert this object into the
workingMemory? My Lime interface would have getters and setters. Will
the engine look for the fields themselves in an object or can it work with
just getters and setters ( as would be declared in the Lime.java interface
and defined in the Lime.rb ruby class? </div>
<div><br></div>
<div>Are there any drawbacks in doing it this way?</div>
<div><br></div>
<div>Any comments/pointers will be appreciated.</div>
<div><br></div>
<div>Thanks!!</div><br>_______________________________________________<br>rules-users
mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core
Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br></div></div></blockquote></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>