Re: JESS: Serializing Userfunctions

2006-09-22 Thread friedman_hill ernest j
I think Henrique Lopes Cardoso wrote: Just stating the class to be Serializable made it work, that is, bsave() does not complain anymore and after bload()ing the functions work as expected. I then tried with a simpler example, which got me the NotSerializableException again...

RE: JESS: Serializing Userfunctions

2006-09-22 Thread Adair, John
, September 22, 2006 12:29 PM To: jess-users@sandia.gov Subject: Re: JESS: Serializing Userfunctions Just found out what the problem was. I was defining my Userfunction as an innerclass of the main class where I had the Rete instance. That main class was not Serializable, and that was the class

JESS: Serializing Userfunctions

2006-09-21 Thread Henrique Lopes Cardoso
Hi, I was using bsave() and bload() with an engine that includes Java-implemented user-functions. Since these are not serializable, I was using removeUserfunction() to all Java-implemented functions before bsave()ing. The user functions would be re-defined after bload()ing. This approach got