[ http://jira.jboss.com/jira/browse/JBAS-1634?page=comments#action_12316556 ] Peter Doornbosch commented on JBAS-1634: ----------------------------------------
By the way, it would be nice if this default was configurable from the outside, e.g. in the standardjboss.xml, especially if you choose to solve this issue by changing the dtd -;) > default value for entity bean cache-invalidation > ------------------------------------------------ > > Key: JBAS-1634 > URL: http://jira.jboss.com/jira/browse/JBAS-1634 > Project: JBoss Application Server > Type: Bug > Components: Clustering > Versions: JBossAS-4.0.1 Final > Reporter: Peter Doornbosch > Priority: Minor > > > According to the jboss_4_0.dtd, the value for entity bean cache invalidation > is true: > <!-- > The cache-invalidation element indicates if this bean cache should listen > to cache > invalidation events and clear its cache accordingly as well as send cache > invalidation > messages. > It is provided by the deployer. If not, jboss will assume > cache-invalidation = True > NOTE: This value will *only* be applied if the correct cache plugin and > interceptor(s) > are defined in the container configuration. > Possible values: "False", "True" (default) > Used in: entity (only commit-option A and D will invalidate their cache) > --> > <!ELEMENT cache-invalidation (#PCDATA)> > However, in reality it is false, as can be concluded from the following > source code fragment, taken from EntityMetaData.java: > private boolean doDistCachInvalidations = false; > (...) > // Manage distributed cache-invalidation settings > // > String distCacheInvalidations = getElementContent(getOptionalChild( > element, > "cache-invalidation"), (this.doDistCachInvalidations ? "True" : > "False") ); > this.doDistCachInvalidations = distCacheInvalidations.equalsIgnoreCase > ("True"); > When the option is not set, the value of doDistCachInvalidations is taken, > which equals to false. -- 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 ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development