This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes BEA/Weblogic and the fly likes How to create singleton in clustered environment? 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 » BEA/Weblogic
Bookmark "How to create singleton in clustered environment?" Watch "How to create singleton in clustered environment?" New topic
Author

How to create singleton in clustered environment?

Siva Krishna
Greenhorn

Joined: Sep 19, 2008
Posts: 4
Hello,

I have a question on Singleton object. When a singleton object is created it is specific to JVM.

My question is: How can we achieve this in clustered environment. Say we have 3 servers all running the same code. Now each server contains a singleton object, is it possible to create a single object across all the servers.

I'm using Weblogic 8.1, is there any way that I can set an object as singleton, across weblogic cluster?

Regards
Siva Krishna. K.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create singleton in clustered environment?