Bug 900082 (JBPAPP6-1521) - Replication of attribute changed in @PrePassivate method does not work for nested beans
Summary: Replication of attribute changed in @PrePassivate method does not work for ne...
Keywords:
Status: CLOSED WONTFIX
Alias: JBPAPP6-1521
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: EAP 6.4.0
Assignee: Paul Ferraro
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard: eap601candidate
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 17:05 UTC by Ondrej Chaloupka
Modified: 2015-06-23 21:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-23 16:18:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-4266 0 Major Resolved Replication of attribute changed in @PrePassivate method does not work for nested beans 2015-06-24 08:54:57 UTC
Red Hat Issue Tracker JBPAPP6-1521 0 Major Closed Replication of attribute changed in @PrePassivate method does not work for nested beans 2015-06-24 08:54:57 UTC

Description Ondrej Chaloupka 2012-03-22 17:05:54 UTC
project_key: JBPAPP6

In case that a sfsb nested bean (a stateful bean which is injected into other bean in this case into a clustered bean) changes its attribute (member variable) in @PrePassivate method then the new state is not replicated to other nodes.
You can check my testcase:
https://github.com/ochaloup/jboss-as/blob/67f992608bacc2bce95b0d7655083a83e70367e0/testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/ejb3/stateful/passivation/ClusterPassivationTestCase.java

The steps done in tests are following:
1) Search for stateful bean (a "parent" bean for the nested one, bean where the nested one is injected to)
2) Let the stateful bean be passivated (in this time the nested bean is passivated as well, the @PrePassivate method is called)
3) A variable of the nested bean is changed in the @PrePassivate method
4) Do a call on second node - changed state isn't on the other node

You can check it in the linked test. When no method on nested been is called (the call is commented now):
https://github.com/ochaloup/jboss-as/blob/67f992608bacc2bce95b0d7655083a83e70367e0/testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/ejb3/stateful/passivation/ClusterPassivationTestCase.java#L305
Then the test on the changed attribute fails on the other server:
https://github.com/ochaloup/jboss-as/blob/67f992608bacc2bce95b0d7655083a83e70367e0/testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/ejb3/stateful/passivation/ClusterPassivationTestCase.java#L318

Comment 1 Ondrej Chaloupka 2012-03-22 17:06:19 UTC
Link: Added: This issue Cloned from AS7-4266


Comment 2 Rajesh Rajasekaran 2012-03-22 17:52:43 UTC
Labels: Added: eap6_need_triage


Comment 3 Rajesh Rajasekaran 2012-07-11 19:55:17 UTC
Labels: Removed: eap6_need_triage Added: eap601candidate


Comment 4 Anne-Louise Tangring 2012-11-13 21:01:40 UTC
Docs QE Status: Removed: NEW 



Note You need to log in before you can comment on or make changes to this bug.