HI Paul
ya there is some problem with jboss, so i reinstalled then it is working.
i deployed the application, to
test that one, i created one
servlet, where i am calling that ejb.
this is the code snippet :
Object obj = null;
try{
InitialContext ic = new InitialContext();
obj = ic.lookup("java:com/sample/MyHome");
MyHome home = (MyHome)PortableRemoteObject.narrow(obj, MyHome.class);
MyRemote myRemote = home.create();
myRemote.doThis();
}catch(Exception e)
{
e.printStackTrace();
}
but it is throwing :
javax.naming.NameNotFoundException: com not bound
how to solve this
thanks in advance.