Hi…
Did you read this…??
-----Mensaje original-----
De: “Ray H.” [email protected]
Enviado: 03/12/2013 15:25
Para: “[email protected]” [email protected]
Asunto: [jruby-user] Re: Passing JRuby to Java
Christian, I wanted to get a bit more info about the Marshal class, but
cannot seem to find it. I searched in the JRuby API but only saw the
MarshalStream class.
Like I said, I need to pass the objects to Drools and Drools need to
recognize them as a special named class for the “facts” to work. That
was why I created a Java class to inspect an object and then passed a
JRuby mongoid/moped object. JRuby properly see it as an object of type
“Record” or whatever I have called it, but my Java program saw the class
as “RubyObject”.
Drools is a rules engine that responds to facts that are actually Java
classes with specific values. So if for example, I have customer data
in a class but Drools not see the class as being “Customer”, then it
will not trigger processing. The class types have to match as well as
the method calls.
Ray
–
Posted via http://www.ruby-forum.com/.