[
https://jira.jboss.org/browse/JBESB-2882?page=com.atlassian.jira.plugin.s...
]
David Ward commented on JBESB-2882:
-----------------------------------
Jeff, in response to your comments:
1a) Yes. If a session was created when the config is FIRE_ALL_RULES, then
"dispose=true" in the MessageProperties will simply dispose() the session.
However, when a session was created when the config is FIRE_UNTIL_HALT, then
"dispose=true" in the message Properties will first call session.halt(), then
session.dispose(). The "client" of the stateful session doesn't have to
worry about whether fireAllRules() or fireUntilHalt() was used. They just have to know to
send in dispose=true when they are done.
1b) Yes. Undeploying (or redeploying - which is just an undeploy followed by a deploy)
the service will always call halt() before dispose() on the stateful session IF that
session was configured with FIRE_UNTIL_HALT. Otherwise, just dispose() is called.
2) I do not belive this was a requirement. Please start a developer (not user) forum
thread with more detail and provide the link? Thanks.
David
Add support for fireUntilHalt to BusinessRulesProcessor
-------------------------------------------------------
Key: JBESB-2882
URL:
https://jira.jboss.org/browse/JBESB-2882
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 4.6
Reporter: Jeff DeLong
Assignee: David Ward
Fix For: 4.9
To better support CEP, an ESB Rule Service should be able to create the KnowledgeBase,
StatefulKnowledgeSession, etc, and then execute fireUntilHalt. This will cause the thread
to block, and the rules engine will continue to process (in a separate thread). Either the
same ESB Service, or different service with access to the StatefulKnowledgeSession, can
then receive messages / events and insert them into the StatefulKnowledgeSession.
FireUntil Halt provides two important benefits to a CEP application. First it provides
more timely rules firing. Even more important, it support the case where the absence of
incoming events should cause rules to fire.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira