<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Hi,</DIV><DIV>I have a query regarding Drools Persistence.</DIV><DIV>I have a scenario in which I want to know whether drool persistence will work or not.</DIV><DIV>&nbsp;</DIV><DIV>Lets say I am in between a workflow and suddenly my server creashes.</DIV><DIV>Suppose my workFlow was completed upto 3 steps with lets say 2 more steps to go.</DIV><DIV>As I am using drools-persistence Api methods so my data regarding the session , variable and process will go into the database specified by me in the tables 'SessionInfo', VaraibleInstanceInfo', and ProcessInstanceInfo and 'WorkItemInfo' tables of the database.</DIV><DIV>&nbsp;</DIV><DIV>Now as my server crashed and I restarted my application.</DIV><DIV>So now I will restore the session object as my applicaiton got crashed from the database using the below code.</DIV><DIV><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2><P>this</B></FONT></FONT><FONT size=2>.</FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>ksession</FONT></FONT><FONT size=2> = JPAKnowledgeService.<I>loadStatefulKnowledgeSession</I>(<U>id</U>, <U>kbase</U>, </FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>null</B></FONT></FONT><FONT size=2>, <U>env</U>);</FONT></P><P><FONT size=2>Now as I have restarted the server, KnowledgeBase object&nbsp;i.e. 'kbase' will become <STRONG>null </STRONG>and so as Enviorment Class object&nbsp; 'env'.&nbsp; </FONT></P><P>Are KnowledgeBase object are stored as well in the database ???</P><P>or I have to create a new KnowledgeBase to load the previous StatefulKnowledgeSession object.</P><P>So in short how can I restore the previous session or If I cann't restore it can I do that by storing the Knowledgebase object and Enviorment Object in the database as well.</P><P>Please help me how can this be achieved. <BR></P></DIV><DIV><DIV>Thanks &amp; Regards<BR><BR>Pardeep Ruhil<BR></DIV></DIV></FONT>This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient&#44; please do not use or disseminate the information&#44; notify the sender and delete it from your system. Thanks<br /><BR>
______________________________________________________________________<BR>