wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Cached JNDI lookup in AS Cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Cached JNDI lookup in AS Cluster" Watch "Cached JNDI lookup in AS Cluster" New topic
Author

Cached JNDI lookup in AS Cluster

N Jain
Greenhorn

Joined: Aug 11, 2007
Posts: 14
Hello Forum,

I have 2 JBoss AS configured in a cluster (HA-JNDI incorporated). I have a service locator class that implements JNDI caching.

Code Snippet

As the application is accessed, n number of lookup's are cached that refer to either AS1 or AS2. Now when I shutdown AS1, and the application try to use any cached lookup that is referencing AS1, I get the following error.


I thought the lookup would be successful as AS2 is available.

Please advice where I am going wrong.

Thank you,
Nitin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cached JNDI lookup in AS Cluster