1 22 package org.jboss.ejb3.test.enventry; 23 24 import javax.annotation.Resource; 25 import javax.ejb.Stateless ; 26 import javax.ejb.Remote ; 27 28 import org.jboss.annotation.ejb.RemoteBinding; 29 30 import org.jboss.logging.Logger; 31 32 36 @Stateless (name="ExtendedTestEnvEntry") 37 @Remote (TestEnvEntry.class) 38 @RemoteBinding(jndiBinding="ExtendedTestEnvEntry") 39 public class ExtendedTestEnvEntryBean 40 extends TestEnvEntryBean 41 { 42 private static final Logger log = Logger.getLogger(ExtendedTestEnvEntryBean.class); 43 44 @Resource(name="maxExceptions") private int maxExceptions = 3; 45 46 @Resource private int numExceptions = 2; 47 48 private int minExceptions = 0; 49 50 public int getMaxExceptions() 51 { 52 return maxExceptions; 53 } 54 55 public int getNumExceptions() 56 { 57 return numExceptions; 58 } 59 60 public int getMinExceptions() 61 { 62 return minExceptions; 63 } 64 65 } 66 | Popular Tags |