Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Lookup from Helper class..

 
vivek kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have been look up like :-
InitialContext ictx = new InitialContext();
Context myenv = ictx.lookup("java:comp/env");
SS1Home home = (SS1Home)javax.rmi.PortableRemoteObject.narrow(myEnv.lookup("ejb/ses1"),SS1Home.class);
from a Helper class?

Say there is a bean that call a helper class, then can this helper class lookup a bean as mentioned above or we can have look up only in bean?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic