[
https://issues.jboss.org/browse/AS7-4266?page=com.atlassian.jira.plugin.s...
]
Ondřej Chaloupka commented on AS7-4266:
---------------------------------------
Hi,
I've checked it once again against AS7 upstream and it does not work for me.
How I wrote above. Problem is when a method is defined as @PrePassivate. Then the
passivation is run on node_1. The method is correctly invoked. The method changes some
variable of a nested bean. After switching off the node_1, the node_2 (which is in a
cluster with node_1) hasn't got the changed state of changed variable (about the
variable which was changed in @PrePassivate method on node_1).
Replication of attribute changed in @PrePassivate method does not
work for nested beans
---------------------------------------------------------------------------------------
Key: AS7-4266
URL:
https://issues.jboss.org/browse/AS7-4266
Project: Application Server 7
Issue Type: Bug
Components: Clustering, EJB
Affects Versions: 7.1.1.Final
Reporter: Ondřej Chaloupka
Assignee: jaikiran pai
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/67f992608bacc2bce95b0d7655083a8...
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/67f992608bacc2bce95b0d7655083a8...
Then the test on the changed attribute fails on the other server:
https://github.com/ochaloup/jboss-as/blob/67f992608bacc2bce95b0d7655083a8...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira