01: // BankSession.java
02:
03: package org.objectweb.clusterDemo;
04:
05: import java.rmi.RemoteException;
06: import javax.ejb.EJBObject;
07:
08: import java.util.*;
09:
10: /**
11: * BankSession remote interface
12: */
13: public interface BankSession extends EJBObject {
14: /**
15: * credit method
16: */
17: public void credit(Integer accountId, String clientName, int value,
18: String reason) throws RemoteException;
19:
20: /**
21: * debit method
22: */
23: public void debit(Integer accountId, String clientName, int value,
24: String reason) throws RemoteException;
25:
26: /**
27: * createAccount method
28: */
29: public Integer createAccount(String clientName, int value)
30: throws RemoteException;
31:
32: }
|