File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Bean Lookup from Helper class.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Bean Lookup from Helper class.." Watch "Bean Lookup from Helper class.." New topic
Author

Bean Lookup from Helper class..

vivek kumar
Greenhorn

Joined: Sep 18, 2007
Posts: 13
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean Lookup from Helper class..