How often to get a reference to my cached bean?  
Author Message
timasmith





PostPosted: 2005-12-13 11:19:00 Top

java-programmer, How often to get a reference to my cached bean? Hi I have an entity bean which caches data. It could sit in the
container for a very long time.

This entity bean has references to other similary beans that cache.
Should I get a single reference to the other beans once - on startup or
should I lookup the bean every time I need it?

MyClassHome refhome = MyHomeHelper.getHome();
MyCacheClass reference = refhome.find();

The only reason I can think of for looking it up may be if the resource
(bean) moved to another server due to a crash/failover etc?

thanks

Tim