How often to get a reference to my cached bean?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top