[rules-dev] Today's Eleusinian mystery: deserializing a package for change set monitoring

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 17 04:53:39 EDT 2011


Serializing a compiled package seems a rational thing to do - after all,
there is: <resource source="..." type="PKG" /> and it is recognized by the
monitor.

However, you can't simply serialize an
org.drools.definition.KnowledgePackage as it is usually done by writing it
to an ObjectOutputStream: deserialization in the KnowledgeAgent throws a CCE
exception.  To make it work, you must use a DroolsObjectOutputStream, which
is nothing but a rename of ObjectOutputStream. So I have use
DroolsObjectOutputStream, but it is not part of the public API.

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110617/650e6d92/attachment.html 


More information about the rules-dev mailing list