• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we not using "comp:java/env" for EJB Reference?

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these valid code(assuming all variables been declared/set correctly previously)

Context ctx = new InitialContext();
beanHome = (BeanHome) PortableRemoteObject.narrow(ctx.lookup("beanHome"), BeanHome.class);
bean = beanHome.create();

Thx for the clarification.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic