T
timasmith
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
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