1 22 package org.jboss.ejb3.test.bank; 23 24 import javax.ejb.Stateless ; 25 import javax.ejb.Remote ; 26 27 31 @Stateless 32 @Remote (TestStatus.class) 33 public class TestStatusBean implements TestStatus 34 { 35 public static boolean postConstruct; 36 public static boolean preDestroy; 37 public static boolean postActivate; 38 public static boolean prePassivate; 39 40 public boolean postConstruct() 41 { 42 return postConstruct; 43 } 44 45 public boolean preDestroy() 46 { 47 return preDestroy; 48 } 49 50 public boolean postActivate() 51 { 52 return postActivate; 53 } 54 55 public boolean prePassivate() 56 { 57 return prePassivate; 58 } 59 60 public void clear() 61 { 62 postConstruct = false; 63 preDestroy = false; 64 postActivate = false; 65 prePassivate = false; 66 } 67 } 68 | Popular Tags |