1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.sbinterface; 26 27 import java.rmi.RemoteException ; 28 29 import javax.annotation.PreDestroy; 30 import javax.ejb.EJBException ; 31 import javax.ejb.PostActivate ; 32 import javax.ejb.PrePassivate ; 33 import javax.ejb.Remote ; 34 import javax.ejb.Remove ; 35 import javax.ejb.SessionBean ; 36 import javax.ejb.SessionContext ; 37 import javax.ejb.Stateful ; 38 39 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck01; 40 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck02; 41 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType; 42 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.BaseInsertCallbackEvent; 43 44 49 @Stateful (name = "SFSBSessionBeanItfWithAnnotation") 50 @Remote (ItfCheck02.class) 51 public class SFSBSessionBeanItfWithAnnotation extends BaseInsertCallbackEvent implements SessionBean , ItfCheck02 { 52 53 56 private static final long serialVersionUID = 1L; 57 58 63 @PostActivate 64 public void ejbActivate() throws EJBException , RemoteException { 65 super.log(SFSBSessionBeanItfWithAnnotation.class.getName(), CallbackType.POST_ACTIVATE, 67 SFSBSessionBeanItfWithAnnotation.class.getName()); 68 } 69 70 75 @PrePassivate 76 public void ejbPassivate() throws EJBException , RemoteException { 77 super.log(SFSBSessionBeanItfWithAnnotation.class.getName(), CallbackType.PRE_PASSIVATE, 79 SFSBSessionBeanItfWithAnnotation.class.getName()); 80 } 81 82 87 @PreDestroy 88 public void ejbRemove() throws EJBException , RemoteException { 89 super.log(SFSBSessionBeanItfWithAnnotation.class.getName(), CallbackType.PRE_DESTROY, 90 SFSBSessionBeanItfWithAnnotation.class.getName()); 91 } 92 93 99 public void setSessionContext(final SessionContext ctx) throws EJBException , RemoteException { 100 } 101 102 106 public void check() throws Exception { 107 } 108 109 112 @Remove 113 public void remove() { 114 } 115 116 } 117 | Popular Tags |