Hi Jen,<br><br>To answer your 3. point. You can create a serializable marshaller like this:<br><pre>MarshallerFactory.newSerializeMarshallingStrategy( acceptor );<br></pre>You can find complete examples here:<br><a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/MarshallingTest.java">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/integrationtests/MarshallingTest.java</a><br>
<br>Best regards,<br>Michal<br><br><br><div class="gmail_quote">On Sat, Jul 11, 2009 at 11:55 PM, LadyCode <span dir="ltr">&lt;<a href="mailto:j_whittlesea@hotmail.com">j_whittlesea@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
I have written a Java application that reads in approximately 6000 .dslr<br>
rules at runtime. This takes around 6minutes, however I have installed the<br>
application on the target (rather old!) machine and load time is in excess<br>
of 20minutes. I have been trying without success to find a way to speed up<br>
loading:<br>
<br>
I have tried:<br>
<br>
1. Serialising the KnowledgePackages themselves. This works well but has<br>
limited effect on load time.<br>
2. Serialising the KnowledgeBase, this does not seem to work on large rule<br>
bases and fails with StackOverflowException when I load more than about 200<br>
rules.<br>
3. Serialising the StatefulKnowledgeSession using<br>
<br>
Marshaller marshaller = MarshallerFactory.newMarshaller(knowledgeBase);<br>
marshaller.marshall(out, session);<br>
<br>
This works well for the life of the marshaller but does not solve my problem<br>
as I need to restart the application and therefore cannot use the same<br>
instance of marshaller later on. Marshaller is not serialisable.<br>
<br>
I know some of these points are discussed in other posts. But is there<br>
anything I can do or have I missed the point?<br>
<br>
Any help or comments very much appreciated,<br>
<br>
Regards,<br>
Jen<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Failing-serialisation-of-large-rule-base-tp24444231p24444231.html" target="_blank">http://www.nabble.com/Failing-serialisation-of-large-rule-base-tp24444231p24444231.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>