1 22 package org.jboss.ejb3.test.aspectdomain; 23 24 import javax.ejb.Remote ; 25 import javax.ejb.Stateful ; 26 27 import org.jboss.annotation.ejb.AspectDomain; 28 import org.jboss.annotation.ejb.cache.Cache; 29 import org.jboss.annotation.ejb.cache.tree.CacheConfig; 30 import org.jboss.annotation.ejb.RemoteBinding; 31 import org.jboss.annotation.ejb.PoolClass; 32 import org.jboss.logging.Logger; 33 34 40 @Stateful(name="Stateful") 41 @Remote (org.jboss.ejb3.test.aspectdomain.Stateful.class) 42 @RemoteBinding(jndiBinding = "Stateful") 43 @AspectDomain("Test Aspect Domain") 44 @PoolClass(value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000) 45 @Cache(org.jboss.ejb3.cache.tree.StatefulTreeCache.class) 46 @CacheConfig(name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300) 47 public class StatefulBean 48 implements org.jboss.ejb3.test.aspectdomain.Stateful 49 { 50 private static final Logger log = Logger.getLogger(StatefulBean.class); 51 52 public String test() throws Exception 53 { 54 return "Not intercepted"; 55 } 56 } 57 | Popular Tags |