[rules-users] Proper termination of a CommandService
Kris Verlaenen
kris.verlaenen at cs.kuleuven.be
Tue Dec 2 11:31:58 EST 2008
Michal,
I'll add a dispose method to the SingleSessionCommandService. Don't think using a command for this would be a good idea as it would leave the session in a disposed state so future commands would fail.
Regarding your earlier question, SingleSessionCommandService now also has constructors that allow you to pass in a PlaceholderResolverStrategyFactory.
Kris
----- Original Message -----
From: Michal Bali
To: Rules Users List
Sent: Tuesday, December 02, 2008 1:24 AM
Subject: [rules-users] Proper termination of a CommandService
Hello,
Let's say I have some implementation of a CommandService (for example StatefulSessionCommandService). After I finish working with this CommandService, I want to correctly 'destroy' this object. Since it contains a stateful rule session, I believe this session needs to be disposed. What is the right way to do it?
I was thinking about implementing a DisposeCommand that will simply call session.dispose() in its execute method. Is this a valid solution?
Best Regards,
Michal
------------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081202/4b55555b/attachment.html
More information about the rules-users
mailing list