Rickard,

> Giju Thomson wrote:
>
> >     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 ?
>
>
> Try both ways, benchmark them, and pick the fastest one.
>

As a Session Bean, it would kinda defeat the purpose of caching
references, since you have to lookup the cache (i.e., the Session Bean)
to use it in the first place! (My first home factory cache written
around 2 years did that. I've grown a little wiser since ;)

-krish

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