Will Singletone Pattern work in Clustered environment ?

Questions by sunils   answers by sunils

Showing Answers 1 - 6 of 6 Answers


  • Nov 3rd, 2006

No. It will not.

  Was this answer useful?  Yes

Mannu Kumar Pandey

  • Feb 8th, 2007

Yes, Singleton pattern is a creational pattern and its purpose is that only one instance of a class will be created. That instance can be share in a cluster environment.

  Was this answer useful?  Yes


  • Apr 8th, 2007

The Singleton class instance will be never shared in clustered instance. It will be always one instance per JVM.

  Was this answer useful?  Yes


  • Jun 14th, 2007

That means applications with singleton class(es) wont work in clustered environment?

  Was this answer useful?  Yes


  • Sep 5th, 2007

Singleton pattern wont work in clustered environment. If you want to use it, either you can use JNDI to store the object so that all the jvms have access to same object. OR you can bind the object using RMI.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Answer Question

Click here to Login / Register your free account

Send   Reset


Related Answered Questions


Related Open Questions