[esb-issues] [JBoss JIRA] Assigned: (JBESB-1907) Race condition when creating stateful working memory
Tom Fennelly (JIRA)
jira-events at lists.jboss.org
Thu Aug 7 11:23:50 EDT 2008
[ https://jira.jboss.org/jira/browse/JBESB-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom Fennelly reassigned JBESB-1907:
-----------------------------------
Assignee: Tom Fennelly
> 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
> Assignee: Tom Fennelly
> 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.
> The similar problem can occur when the rule bases are created. The two rule bases and thus two working memories can be created.
--
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
More information about the esb-issues
mailing list