google Ads

Thursday, February 4, 2010

Bank Operation EJP Program

package Bank;
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
public interface BankHome extends EJBHome
{
Banking create()throws RemoteException,CreateException;
}



package Bank;
import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface Banking extends EJBObject
{
public int withdraw(int a, int amt)throws RemoteException;
public int deposit(int b, int amt)throws RemoteException;
public int balance(int amt)throws RemoteException;
}

No comments:

Post a Comment