How to throw error from EJB
Hi, there
I have some problem about throw an error ......
index.jsp
//.....
int rowCount=adminLogin.loginResult(userName,password);
//....
AdminLogin.java
import java.rmi.RemoteException;
import javax.ejb.Remote;
@Remote
publicinterface AdminLogin{
publicint loginResult(String userName,String password)throws RemoteException;
}
if any error occured how can i throw an error to show on index.jsp?
Thank for advance

