• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!