KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > clusterDemo > BankSession


1 // BankSession.java
2

3 package org.objectweb.clusterDemo;
4
5 import java.rmi.RemoteException JavaDoc;
6 import javax.ejb.EJBObject JavaDoc;
7
8 import java.util.*;
9
10 /**
11  * BankSession remote interface
12  */

13 public interface BankSession extends EJBObject JavaDoc {
14    /**
15      * credit method
16      */

17     public void credit(Integer JavaDoc accountId, String JavaDoc clientName, int value, String JavaDoc reason) throws RemoteException JavaDoc;
18
19     /**
20      * debit method
21      */

22     public void debit(Integer JavaDoc accountId, String JavaDoc clientName, int value, String JavaDoc reason) throws RemoteException JavaDoc;
23
24     /**
25      * createAccount method
26      */

27     public Integer JavaDoc createAccount(String JavaDoc clientName, int value) throws RemoteException JavaDoc;
28
29 }
30
Popular Tags