File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Caching EJB Homes references Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Caching EJB Homes references" Watch "Caching EJB Homes references" New topic

Caching EJB Homes references

Rahul JG
Ranch Hand

Joined: Jun 05, 2002
Posts: 44
One problem with caching and reusing EJB homes involves handling stale cached homes.
If a client caches an EJB home and the container shuts down and then returns, the client´┐Żs
cached value is stale and will not work, resulting in a CORBA exception.
Is there any strategy wherein one could check whether the cached EJB Home reference is

Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
This is really dependent on your Application Server. Many Application Servers implement the Home stubs in such a way that they can survive server crashes, restarts, and hot redeployments. Furthermore, Home stubs are typically implemented in a cluster-aware fashion so that a Home stub is also not tied to a single node if you are running in a clustered environment.
Again this is highly dependent on your Application Server, check there first.
I agree. Here's the link:
subject: Caching EJB Homes references
It's not a secret anymore!