(I hemmed and hawed about whether this goes on the dev or user list; I will start with dev.)<br><br>I have a StatefulKnowledgeSession that I am trying to serialize using a custom ObjectMarshallingStrategy.<br><br>However, it appears that the default full serialization strategy is being used instead.<br>
<br>Here is the code that I am using:<br><br>final Marshaller marshaller = MarshallerFactory.newMarshaller(knowledgeBase, new ObjectMarshallingStrategy[] { myStrategy });<br>assert marshaller != null;<br>final ByteArrayOutputStream baos = new ByteArrayOutputStream();<br>
final ObjectOutputStream oos = new ObjectOutputStream(baos);<br>final DroolsObjectOutputStream doos = new DroolsObjectOutputStream(oos);<br>marshaller.marshall(doos, this.droolsSession);<br>this.data = baos.toByteArray();<br>
<br>My strategy contains System.out.printlns at the moment in the write() and read() methods.  They are never invoked.<br><br>What am I missing, or is this a bug?<br><br>Best,<br>Laird<br>