aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Caching EJB Homes references" Watch "Caching EJB Homes references" New topic
Author

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
stale?


Rahul
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Caching EJB Homes references