Are you sure that the thread is not dying? can you create a simple project that demonstrate your current scenario? <br>I can work to fix that if there is a problem there.<br><br><div class="gmail_quote">On Fri, Jun 25, 2010 at 6:23 PM, nanic23 <span dir="ltr"><<a href="mailto:nanic23@hotmail.com">nanic23@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi All,<br>
<br>
I was able to implement some timers and they behave as expected until I<br>
enable persistence. Timers work (get triggered) when creating the<br>
StatefulKnowledgeSession by kbase.newStatefulKnowledgeSession() but they do<br>
NOT work (do not get triggered) when creating the StatefulKnowledgeSession<br>
by JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);<br>
<br>
I am calling ksession.fireUntilHalt() from within a new thread and all that.<br>
The problem is not getting timers to work, as I have already accomplished<br>
this, but the problem is rather getting them to work with persistence<br>
enabled.<br>
<br>
- Has anyone implemented timers while using (having enabled) persistence?<br>
- Did you experience any problems such as timers not triggering?<br>
- If so, have you found a work around you could share?<br>
<br>
The timers are being implemented in ruleflow (DRF) and I'm using drools<br>
5.1.0<br>
<br>
Any comments are welcome.<br>
<br>
Thanks,<br>
<br>
Nick.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p923142.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p923142.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<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><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a> <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -<br>