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

kabir.khan@jboss.com do-not-reply at jboss.com
Thu Mar 13 07:21:21 EDT 2008


"maralcbr" wrote : 
  | <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?
  | 

Yes, it would add the @CacheConfig, and override the @Clustered annotation. I am not sure if what you have posted would work or if you  should do the following instead

<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>
  | <annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@org.jboss.annotation.ejb.Clustered)">
  |               @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class)
  | </annotation>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136251#4136251

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



More information about the jboss-user mailing list