You have to use an ordinary Java class(not an ejb) as ejb home factory
as explained in "EJBHome factory design pattern" available for review at

http://www.theserverside.com/patterns/index.jsp

But I got one doubt after reading that document.  The cached homes will
throw an exception if the ejb server is down for some time and then up.
What could be the
workaround for this problem?  The client using the cached ejb home
cannot get the reference and store it in the factory. Any ideas?

thanks in advance.

Giju Thomson wrote:

  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

===========================================================================
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".

Reply via email to