For EJB 1.0 To get EJB Object we use JNDI lookup EJBHome = (EJBHome) contextLookp("EJBBean"); After using EJBHome object 1.Can I store the EJBHome object in a static variable of class(may be facade class) for future use thus avoiding lookup. 2. As i have stored in the static varible ,if I delete entry in the JNDI service,will i be able use EJBHome object stored in the variable.
Thanks Anil, I will go thru the link. To the query no 2,My understanding is that for JNDI lookup,EJB container returns remote stub which is proxy for the Home object to the client. If I retain the stub (which delegates the request to the skeleton )and use it for future unless the location of EJB object in the server is changed. Is my Understanding is right that JNDI services is not required once i get the home object.If it is true then even if i delete corresponding entry in JNDI services,my ejb object can be used. Regards, Prasad
Thanks Anil, Let me try it thru example. Need Information I am working in VAJ(Visual Age Environment).In VAJ all ejb objects when u create are automatically getting registered in JNDI services(Persistence server).I want to know how to get list of objects registered in persistence server.Is there any way i can go remove the registered objects from persistence server without removing the object. Does VAJ put these information in any file? Regards, Prasad
permaculture is largely about replacing oil with people. And one tiny ad: