1 6 27 package org.jboss.test.retry.bean; 28 29 import java.rmi.*; 30 import javax.ejb.*; 31 import javax.naming.InitialContext ; 32 import javax.naming.Context ; 33 import org.jboss.test.retry.interfaces.RetryException; 34 35 public class RetrySessionBean implements SessionBean 36 { 37 private SessionContext sessionContext; 38 39 public void ejbCreate() throws RemoteException, CreateException { 40 } 41 42 public void ejbActivate() throws RemoteException { 43 } 44 45 public void ejbPassivate() throws RemoteException { 46 } 47 48 public void ejbRemove() throws RemoteException { 49 } 50 51 public void setSessionContext(SessionContext context) throws RemoteException { 52 sessionContext = context; 53 } 54 55 public void retry() throws RemoteException 56 { 57 System.out.println("**** in retry ****"); 58 if (RetryException.wasRetried) return; 59 throw new RetryException(); 60 } 61 } 62 | Popular Tags |