Hi,

Has anyone tried to take advantage of the fact that the Rete engine
and all associated constructs (i.e., Deftemplate, Defrule, etc.) are
now Serializable?  It's pretty cool that you can save the state of the
entire Rete engine, but I'm running into problems when I use
(defclass) and serialization.

If I define a simple bean (like SimpleBean from the example), the Rete
engine won't serialize.  It has to do with Java's default
introspection scheme.  The class java.beans.PropertyDescriptor isn't
serilizable, so to serialize the engine I had to implement a
SimpleBeanBeanInfo class which returned a new PropertyDescriptor,
SerializablePropertyDescriptor (which extends PropertyDescriptor).

Now I'm running into problems when I deserialize the engine, that is,
read it from disk and reconstitute the object.  I'm getting a
"java.io.InvalidClassException: java.beans.PropertyDescriptor;
NoSuchMethodError" exception when I call readObject().  I suspect that
I need to implement a SerializableMethodDescriptor object and return
this from my SimpleBeanBeanInfo object.

My question is this:  Isn't this a lot of work just to make my bean
serializable?  Am I doing something wrong?  Is there an easier way?

-Russ

----------------------------------------------------------------------------
Russ Milliken                             Engineering Design Research Center
Graduate Student                                  Carnegie Mellon University
Department of Chemical Engineering    http://www.ndim.edrc.cmu.edu/~milliken
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to