1 22 package org.jboss.test.cts.interfaces; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.EJBObject ; 27 import javax.ejb.RemoveException ; 28 import org.jboss.test.cts.keys.AccountPK; 29 30 36 public interface StatefulSession extends EJBObject 37 { 38 public String getTestName() throws RemoteException ; 39 40 public String method1(String msg) throws RemoteException ; 41 42 public void incCounter() throws RemoteException ; 43 44 public void decCounter() throws RemoteException ; 45 46 public int getCounter() throws RemoteException ; 47 48 public void setCounter(int value) throws RemoteException ; 49 50 public BeanContextInfo getBeanContextInfo() throws RemoteException ; 51 52 public void loopbackTest() throws RemoteException ; 53 54 public void loopbackTest(EJBObject obj) throws RemoteException ; 55 56 57 public boolean getWasActivated() throws RemoteException ; 58 59 60 public boolean getWasPassivated() throws RemoteException ; 61 62 public void createLocalEntity(AccountPK pk, String personsName) throws CreateException , RemoteException ; 63 64 public String readAndRemoveEntity() throws RemoveException , RemoteException ; 65 66 public void createSessionHandle() throws RemoteException ; 67 68 public String useSessionHandle(String arg) throws RemoteException ; 69 70 public void createStatefulSessionHandle(String testName) throws RemoteException ; 71 72 public void useStatefulSessionHandle() throws RemoteException ; 73 74 public void createSessionRef() throws RemoteException ; 75 76 public String useSessionRef() throws RemoteException ; 77 78 public void ping() throws RemoteException ; 79 80 public void sleep(long wait) throws RemoteException ; 81 82 void testBadUserTx() throws RemoteException ; 83 } 84 | Popular Tags |