> This way, EJBHome should be thread safe. Does J2EE spec specify this?
The EJB specification itself does not discuss EJBHome thread safety. So, the answer would be dependent on your vendor's implementation. I believe there have been earlier threads on this list discussing the same issue and it does not make sense to rehash again (unless now the spec - or a future version - has something to say on the topic ;) If your vendor's EJBHomes are not thread safe, then you would need to synchronize access to the methods. -krish > > -----Original Message----- > From: Krishnan Subramanian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 13, 2002 6:05 AM > To: [EMAIL PROTECTED] > Subject: Re: Home Object Caching > > > Giju, > > I believe theserverside.com has an example implementation. > And I posted one quite sometime ago: > http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0105&L=ejb-interest&D=0&P=33 > 654 > > I have a slightly updated version for EJB 2.0 if you are > interested. > > -krish > > > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of Giju Thomson > Sent: Wednesday, February 13, 2002 11:49 AM > To: [EMAIL PROTECTED] > Subject: Home Object Caching > > > Hi All , > I have found out that the most time taken in a ejb lifecycle is at JDNI > Lookup . So if we can cache the home object then it will > be much faster . How can we cache the home object ? What is the best algo to > implement a object cache . Which would be better the > cache as a MBean or as a SessionBean ? > Thanking you in advance . > Cheers > Thomson > > > > > Do You Yahoo!? > Send FREE Valentine eCards with Yahoo! Greetings! > > =========================================================================== > 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". > > =========================================================================== 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".
