I would lookup the homes of all the entity objects in the ejbCreate() method of your bean, then, set them to null in the ejbRemove() method of your bean. If your bean uses other stateless session beans, you might just create them during the ejbCreate of your bean (remove them in ejbRemove).
Don't try to save time by making home instances STATIC, it is a bad idea and will get you into trouble. -AP_ -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Amarnath N Sent: Monday, January 21, 2002 8:00 AM To: [EMAIL PROTECTED] Subject: getting homes hi all, I am using a state less session bean, which intern calls many entity beans to store the data. In each method, i lookup each entity bean home. is it good way to do..or else i get all the home references... please suggest.. regards amar =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
