<br>    Maciek,<br><br>    I did not made the implementation pluggable yet due to the complexities involved in the implementation of new clocks and the fact that interface could still change. Particularly, I would like to have a couple more implementations done (including the heart beat based clock and the fact attribute based clock) before I know that the interface is stable enough to enable pluggability.<br>
<br>    Meanwhile, if you would like to contribute your implementation I would happily add it to the drools codebase and release it in the next version. It will certainly help towards the stabilization of the interface.<br>
<br>    Finally, I am working on a more controllable thread pool wrapper, so that we can plug external thread pools into Drools. Check the ExternalExecutorService implementation and its uses. Maybe what we need is to have your implementation also use that. Suggestions welcome.<br>
<br>   Edson<br> <br><br><div class="gmail_quote">2009/10/22 Maciej Prochniak <span dir="ltr">&lt;<a href="mailto:mpr@touk.pl">mpr@touk.pl</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;">
Hello,<br>
<br>
are there any unintrusive (without recompiling in drools-core ;)) ways<br>
to plug own implementation of TimerService?<br>
Currently configuration is based on enumeration ClockType, which is<br>
<br>
It would be nice to be able to pass any object implementing<br>
TimerService, or some factory class.<br>
<br>
One of the reasons is that I&#39;d like to have more control over thread<br>
pool used by JdkTimerService. Current implementation allows for<br>
unlimited number of threads, it&#39;s also not possible to share thread pool<br>
between different KnowledgeSessions<br>
<br>
thx for reply &amp; br<br>
maciek<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>