[rules-users] Terminating service threads
Manuel Ortiz
manuel.ortizramos at gmail.com
Fri Jun 10 03:47:07 EDT 2011
Wolfgang Laun <wolfgang.laun <at> gmail.com> writes:
>
>
> Both ResourceChange... classes have a stop() method which ought to terminate
the threads.-W
> 2011/6/9 Manuel Ortiz <manuel.ortizramos <at> gmail.com>Hello everybody:
> I have a Drools based application which instantiates KnowledgeAgent and
ResourceChangeNotifier and ResourceChangeScanner services, and see in Eclipse
Debug Tab that these classes run three threads. When my own threads end,
including main thread, these three threads keep running. How can I terminate
these threads?
>
>
> Thank you very much in advance for your time.
>
> Kind regards,
>
> Manuel Ortiz.
>
> _______________________________________________
> rules-users mailing listrules-users <at>
lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
Dear Wolfgang:
Thank you for your quick answer. I've tried ResourceChange...stop() method in
the finalize() method of the context class that instantiates the rule engine
classes, but threads doesn't stop. Maybe I'm not using the method correctly.
Can you tell me something about terminating
KnowledgeAgentImpl$ChangeSetNotificationDetector.run(), which seems a thread
related to KnowledgeAgent?
Thank you again for your time.
Kind regards,
Manuel Ortiz.
More information about the rules-users
mailing list