Obiwan Kenobi

Greenhorn
+ Follow
since May 31, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Obiwan Kenobi

Valentin ,

I was planning to use the jndi look-up i.e. the ServiceLocator Pattern as a solution , but haven't found a lot of documentation on the same.
You mentioned there are some downsides to this ? What are the downsides ?

Here is one link that talks about the Service Locator pattern

http://dev2dev.bea.com/pub/a/2004/01/hurst.html

but its quite terse.

http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html

The pinned object soln. , is it similar to this one ..

http://www.theserverside.com/patterns/thread.tss?thread_id=20819

Btw, I'm using WAS 5.1 . Have you come across this scenario ?

http://www.theserverside.com/talks/videos/BillyNewportText/interview.tss
[ May 31, 2005: Message edited by: Obiwan Kenobi ]
In a clustered J2EE environment , what pattern should I use to mimick the functionality of a Singleton pattern ?

In the current setup the application is on a single instance of the application server and uses a singleton class that contains a hashMap which needs to be accessed / updated by multiple listeners , which receive messages of a queue.

The challenge is to move to J2EE components and use a clustered environment. In a clustered env. , there would be multiple JVMs and hence the singleton pattern will fail. Is there a solution to this issue ?
[ May 31, 2005: Message edited by: Obiwan Kenobi ]