Hi,
I am trying to configurate some cluster options globally in jboss, using
ejb3-interceptors-aop.xml.
Inside this file we have domains, like:
<domain name="Stateful Bean" extends="Base Stateful Bean"
inheritBindings="true">
| <!-- NON Clustered cache configuration -->
| <annotation expr="!class((a)org.jboss.annotation.ejb.cache.Cache) AND
!class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.Cache
(org.jboss.ejb3.cache.simple.SimpleStatefulCache.class)
| </annotation>
| <annotation
expr="!class((a)org.jboss.annotation.ejb.cache.simple.PersistenceManager) AND
!class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.simple.PersistenceManager
(org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.class)
| </annotation>
| <annotation
expr="!class((a)org.jboss.annotation.ejb.cache.simple.CacheConfig) AND
!class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000,
idleTimeoutSeconds=300, removalTimeoutSeconds=0)
| </annotation>
|
| <!-- Clustered cache configuration -->
| <annotation expr="!class((a)org.jboss.annotation.ejb.cache.Cache) AND
class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.Cache
(org.jboss.ejb3.cache.tree.StatefulTreeCache.class)
| </annotation>
| <annotation
expr="!class((a)org.jboss.annotation.ejb.cache.tree.CacheConfig) AND
class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.tree.CacheConfig
(name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000,
idleTimeoutSeconds=300, removalTimeoutSeconds=0) </annotation>
| </domain>
Do you know where can I find documentation that explains how to configure it?
The only documentation I could find was:
http://labs.jboss.com/jbossejb3/docs/reference/build/reference/en/html/se...
My exact doubt is about making this configuration:
<annotation expr="!class((a)org.jboss.annotation.ejb.cache.tree.CacheConfig) AND
class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.tree.CacheConfig
(name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000,
idleTimeoutSeconds=300, removalTimeoutSeconds=0)
|
@org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class)
| </annotation>
This block would add the do tags defined inside if CacheConfig tag is not found on the
Bean and Clustered tag is found on the bean?
Anyway, would be excelent if somebody besides this doubt, could point me the correct
documentation for me to study and understand it well.
Thanks in advance.
Marcelo Alcantara
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136100#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...