This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Websphere HomeStub Caching drawbacks?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt regarding usage of ServiceLocator Design pattern. This pattern's intention is to remove the expense of Remote Lookups of EJBHome Interfaces, Connection Factory, Queue Names, Datasources by caching them in some datastructure and reusing them again, whenever required. IBM suggests and has a short paper on it website as well.
My concern is will this caching be a cause of concern in a Clustered Environment. For e.g. if we cache EJBHome for instance, and that particular server
in the cluster goes down, then the application will fail because it will keep getting the same EJBHome pointing to that appserver instance in that cluster which is down. Is there any way that Websphere provides to eradicate this problem ? Does Websphere allow some kind of configuration to remove this. There is something known as Clusterwide JNDI tree available in JBOSS. Do we have something like that in Websphere.
"JBoss has a cluster-wide JNDI tree that is replicated across the entire cluster. It requires no additional configuration and boots up with a cluster-enabled JBoss configuration. Remote JBoss JNDI clients can also implicitly use multicast to discover the JNDI tree"

If we have something like this in Websphere, we can use the ServiceLocator Design pattern without any issues in a Websphere Environment. This can be added as a good J2EE practice in my list.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BI BI

Welcome to JavaRanch.

Unfortunately your name violates our naming policy. Please take a quick look at the rules and edit your profile accordingly.

Thank you!
 
You have to be odd to be #1 - Seuss. An odd little ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic