Insufficient cache invalidation.
--------------------------------
Key: JBAS-1601
URL: http://jira.jboss.com/jira/browse/JBAS-1601
Project: JBoss Application Server
Type: Feature Request
Components: EJBs
Reporter: Ole Husgaard
Priority: Minor
We have a CMP2.0 bean with some extra persistent state that the CMP engine
cannot handle. To ensure that the extra state is saved to persistent storage we
use call-ejb-store-on-clean=true to ensure that ejbStore is called as the spec
requires. So far no problem.
The problem comes when we use this bean in a clustered environment (commit
option B) and do the dual-deployment RW/RO pattern with cache invalidations.
In this case a cache invalidation is not sent out from the RW deployment to the
RO deployment if the only persistent state changed is the non-CMP-managed
persistent state.
To get around this problem we have written a new interceptor
EntityBeanCacheBatchEagerInvalidatorInterceptor. Replacing the standard
EntityBeanCacheBatchInvalidatorInterceptor with this interceptor ensures that
cache invalidation messages are always sent unless the bean is read-only, or
the entity method call is read-only.
I will attach this interceptor written for 3.2.6 (ie. a contribution).
I would like this - or something similar - to be part of future JBoss versions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development