Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

When do remote interface get invaliated? Can I cache them?

843829Feb 19 2004 — edited Jul 7 2008
Hello,

I am designing an application, and considering using the "Service Locator" pattern, acting as a singleton that will cache jndi context, and bean home and remote interfaces. However I am unsure whether caching of remote interface is a problem or not:

1) Under what circumstances will the cached remote interface for a stateless session bean be invalidated?

2) Under what circumstances will the cached remote interface for an Entity Bean be invalidated?

3) Assuming that I cache Stateful session bean remote interfaces in a Servlet HTTPSESSION, under what circumstances will the cached remote interface for Stateful session bean be invalidated?

4) Finally, do I have to utilise home handles instead of remote interfaces for any of these situations? If so, why?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2008
Added on Feb 19 2004
12 comments
497 views