[jboss-user] [JBoss AOP] - AOP configuration in ejb3-interceptors-aop.xml

maralcbr do-not-reply at jboss.com
Wed Mar 12 15:54:19 EDT 2008


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(@org.jboss.annotation.ejb.cache.Cache) AND !class(@org.jboss.annotation.ejb.Clustered)">
  |          @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.simple.SimpleStatefulCache.class)
  |       </annotation>
  |       <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.PersistenceManager) AND !class(@org.jboss.annotation.ejb.Clustered)">
  |          @org.jboss.annotation.ejb.cache.simple.PersistenceManager (org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.class)
  |       </annotation>
  |       <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class(@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(@org.jboss.annotation.ejb.cache.Cache) AND class(@org.jboss.annotation.ejb.Clustered)">
  |          @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.tree.StatefulTreeCache.class)
  |       </annotation>
  |       <annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@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/session-bean-config.html

My exact doubt is about making this configuration:

<annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@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#4136100

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136100



More information about the jboss-user mailing list