• Post Reply Bookmark Topic Watch Topic
  • New Topic

Callig an EJB object from a Remote Interface  RSS feed

 
balimysore
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Remote class:
public class xyzImpl extends UnicastRemoteObject implements xyz
{
public String getStocksData(String custCatId) throws RemoteException
{
abcEjbClient kk = new abcEjbClient(); ///Line X
kk.getAllData();
}
}
My EJB client:
public abcEjbClient
{
getAllData()
{
return str;
}
}
In the line indicated as ///Line X when I try to instantiate abcEjbClient an exception is being thrown.
If anybody has faced this problem plz tell me why it is occuring and whats the solution for that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!