<div dir="ltr"><br>&nbsp;&nbsp; If I understood your question,<br>&nbsp;<br>&nbsp;&nbsp; Drools 4 -&gt; use &quot;from&quot; to load them on demand for your rules<br>&nbsp;&nbsp; Drools 5 -&gt; you can do the same, or create a session, pre-load it and serialize it to disk or an in-memory binary cache... now, for each request from your application, instead of creating a new session, de-serialize the session from your disk (or in-memory cache) and use it. Please note that you are doing nothing more than clone-by-serialization for the preloaded session, if you use this strategy.<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br>&nbsp;&nbsp; <br><div class="gmail_quote">2008/10/13 David Sinclair <span dir="ltr">&lt;<a href="mailto:dsinclair@chariotsolutions.com">dsinclair@chariotsolutions.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">I have a question concerning facts. I have a service based application<br><br>XML IN -&gt; Business Objects -&gt; Rule Processing -&gt; Business Objects -&gt; XML OUT<br><br>Pretty straightforward. <br>In the rule processing I will lazily load objects into WorkingMemory that drive some of the business rules. For instance, if a new Windows Server(Business Object) is installed, ensure its OS is only Windows Server 2007 (lazily loaded DB object). <br>

<br>What I would like to do is be able to either preload the working memory with this data, or preferably, lazily load the data. So my question is how do you place facts into working memory when you create a new session each time without having to assert them everytime? Or this that a stupid question...Should the question be, since working memory/sessions aren&#39;t thread safe, i.e. one can&#39;t be shared by everyone, what is the best way to place long lived facts into memory of all sessions?<br>

<br>thanks<br><br>dave<br></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>