1 22 package org.jboss.test.util.ejb; 23 24 import java.io.IOException ; 25 import java.io.ObjectInputStream ; 26 import java.io.ObjectOutputStream ; 27 28 import javax.ejb.CreateException ; 29 import javax.ejb.SessionBean ; 30 import javax.ejb.SessionContext ; 31 32 import org.jboss.logging.Logger; 33 34 40 public abstract class SessionSupport implements SessionBean 41 { 42 protected transient Logger log = Logger.getLogger(getClass()); 43 44 protected SessionContext sessionCtx; 45 46 public void ejbCreate() throws CreateException 47 { 48 } 49 50 public void setSessionContext(SessionContext ctx) 51 { 52 sessionCtx = ctx; 53 } 54 55 public void ejbActivate() 56 { 57 } 58 59 public void ejbPassivate() 60 { 61 } 62 63 public void ejbRemove() 64 { 65 } 66 67 private void writeObject(ObjectOutputStream stream) throws IOException 68 { 69 } 71 72 private void readObject(ObjectInputStream stream) throws IOException , ClassNotFoundException 73 { 74 log = Logger.getLogger(getClass()); 76 } 77 } 78 | Popular Tags |