Will Singletone Pattern work in Clustered environment ?

Questions by sunils   answers by sunils

Showing Answers 1 - 16 of 16 Answers

Sakthivel

  • 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

Yas

  • 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

VK

  • Jun 14th, 2007
 

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

  Was this answer useful?  Yes

hibernateuser

  • 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.

 

Related Answered Questions

 

Related Open Questions