1 7 package org.jboss.ejb3.test.initial; 8 9 import javax.ejb.PostConstruct; 10 import javax.ejb.PreDestroy; 11 import javax.ejb.PostActivate ; 12 import javax.ejb.PrePassivate ; 13 14 18 public class ExternalCallbackListener 19 { 20 @PostConstruct 21 public void postConstruct(Object bean) 22 { 23 TestStatusBean.postConstruct = true; 24 } 25 26 @PreDestroy 27 public void preDestroy(Object bean) 28 { 29 TestStatusBean.preDestroy = true; 30 } 31 32 @PostActivate 33 public void postActivate(Object bean) 34 { 35 TestStatusBean.postActivate = true; 36 } 37 38 @PrePassivate 39 public void prePassivate(Object bean) 40 { 41 TestStatusBean.prePassivate = true; 42 } 43 } 44 | Popular Tags |