[JBoss JIRA] Created: (JBESB-1916) Quickstart "business_ruleservice_stateful": Change quickstart scenario to a non-conversation usecase
by Tom Fennelly (JIRA)
Quickstart "business_ruleservice_stateful": Change quickstart scenario to a non-conversation usecase
----------------------------------------------------------------------------------------------------
Key: JBESB-1916
URL: https://jira.jboss.org/jira/browse/JBESB-1916
Project: JBoss ESB
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4
Reporter: Tom Fennelly
Fix For: 4.x
At the moment, the quickstart uses the BusinessRulesService in a conversation type scenario where the Service accumulates the total spend for a customer over multiple orders. This is fine for demo, but will not work with the BusinessRulesService in a multi-conversation type usecase (multiple cutsomers etc) because it only uses a single session model - would need to support a multi session model to manage multiple conversations.
Even with a proper conversational model (multi-session), the usecase in this example would be a bit bogus because the separate orders would most likely be part of different conversations (i.e. different sessions).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months
[JBoss JIRA] Created: (JBESB-1907) Race condition when creating stateful working memory
by Jiri Pechanec (JIRA)
Race condition when creating stateful working memory
----------------------------------------------------
Key: JBESB-1907
URL: https://jira.jboss.org/jira/browse/JBESB-1907
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Content Based Routing
Affects Versions: 4.4
Reporter: Jiri Pechanec
Priority: Critical
Fix For: 4.4 CP1
If more than one thread is used the following code is buggy
private StatefulSession getStatefulSession( final RuleBase ruleBase )
{
final StatefulSession[] statefulSessions = ruleBase.getStatefulSessions();
boolean existingSession = statefulSessions != null && statefulSessions.length > 0;
return existingSession ? statefulSessions[0] : ruleBase.newStatefulSession();
}
It can lead into initiation and use of two working memories for the first messages coming.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months