import java.rmi.RemoteException;
import javax.ejb.EJBObject;
public interface CardValidator extends EJBObject
{
public boolean validateCard(long cardNo, float ammount) throws RemoteException;
}
=============>this is my remote interface
-----------------------------------------------------------------------------------------------------------------------------------------------------------
import java.rmi.RemoteException;
import javax.ejb.EJBHome;
public interface CardValidatorHome extends EJBHome
{
public CardValidator create() throws RemoteException;
}
=============>this is my Home interface
-----------------------------------------------------------------------------------------------------------------------------------------------------------