• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Bean Error : syntax error on token "HelloHome", ";" expected.

 
Sajet Inarup
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created stateless session bean
when I try to create instance on client side I'm getting this error.
syntax error on token "HelloHome", ";" expected. Hopw to solve this?
//my syntax as follws
Context ctx = new InitialContext();
Object obj = ctx.lookup("java:comp/env/ejb/HelloHome")
//error I'm getting on line is
HelloHome rh = (HelloHome)PortableRemoteObject.narrow(obj,HelloHome.class);
Please help,
Thanks,
 
Sajet Inarup
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved ,
Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic