<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><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 class=789525109-20032009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><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">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 class=789525109-20032009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><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 class=789525109-20032009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><FONT face=Arial
color=#0000ff size=2>With kind regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=789525109-20032009><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <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><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">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">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">www.jboss.com</A><BR></BLOCKQUOTE></BODY></HTML>