business_ruleservice_stateful QS doesn't work as expected
---------------------------------------------------------
Key: JBESB-3628
URL:
https://issues.jboss.org/browse/JBESB-3628
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.10 CP1
Reporter: Tom Cunningham
Assignee: Tom Cunningham
Fix For: 4.10 CP1
After the second message is sent, business_ruleservice_stateful QS should set the discount
on the second order to 10 %. Instead, the following is seen in server.log, stating that
the discount is actually 0 %.
2010-10-19 13:12:56,924 INFO [STDOUT] (pool-37-thread-1) set discount of 0.0 on order 2
for customer user1
2010-10-19 13:12:56,924 INFO [STDOUT] (pool-37-thread-1) set discount of 0.0 on order 1
for customer user1
2010-10-19 13:12:56,924 INFO [STDOUT] (pool-37-thread-1) Customer user1 now has a shopping
total of 129.84
2010-10-19 13:12:56,925 INFO [STDOUT] (pool-37-thread-1) set discount of 0.0 on order 2
for customer user1
2010-10-19 13:12:56,925 INFO [STDOUT] (pool-37-thread-1) Customer user1 now has a shopping
total of 129.84
The time the third message is sent, the discount is actually set to 10 %, with this in the
server.log:
2010-10-19 13:37:19,701 INFO [STDOUT] (pool-28-thread-1) set discount of 0.0 on order 3
for customer user1
2010-10-19 13:37:19,701 INFO [STDOUT] (pool-28-thread-1) set discount of 0.0 on order 2
for customer user1
2010-10-19 13:37:19,701 INFO [STDOUT] (pool-28-thread-1) set discount of 0.0 on order 1
for customer user1
2010-10-19 13:37:19,702 INFO [STDOUT] (pool-28-thread-1) Customer user1 now has a shopping
total of 194.76
2010-10-19 13:37:19,702 INFO [STDOUT] (pool-28-thread-1) set discount of 10.0 on order 3
for customer user1
2010-10-19 13:37:19,702 INFO [STDOUT] (pool-28-thread-1) set discount of 10.0 on order 3
for customer user1
2010-10-19 13:37:19,702 INFO [STDOUT] (pool-28-thread-1) Customer user1 now has a shopping
total of 194.76
2010-10-19 13:37:19,702 INFO [STDOUT] (pool-28-thread-1) Customer user1 now has a shopping
total of 194.76
It seems as if a different Customer instance is picked when the rules are fired the second
time - the instance that still has the discount set to 0 %. This would suggest some faulty
behavior wrt. classloading, perhaps even SOA-2419.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira