aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Is there any way to convert a shadow fact back to a javabean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Is there any way to convert a shadow fact back to a javabean" Watch "Is there any way to convert a shadow fact back to a javabean" New topic
Author

Is there any way to convert a shadow fact back to a javabean

Hope Zhu
Ranch Hand

Joined: May 11, 2004
Posts: 32
Hi,

I have a java application which reads string msg off a queue, converts the string into a javabean and puts it into a Jess rule engine. Because of the high volume (a couple of 100 per min) of the msg I can't offer keeping both shadow facts and beans at the same time in the memory. But later if a rule fired against a fact I need find out which fact fired the rule and convert the fact back to bean and send out the bean to another application. Currently I got stuck on how to convert a fact back to a javabean. Is there a way to do it? This is urgent. My boss is chasing me. Anyone knows please please help.

Thanks in advance.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

The shadow fact has a reference to the JavaBean in the OBJECT slot.



Or in Jess



[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way to convert a shadow fact back to a javabean
 
Similar Threads
A difficult Jess rule
Question about shadow fact and java objects
utility to convert a HashMap to a Javabean
Take too long to call reset
Can we convert a Servlet into a Bean