How to perform Singleton of the java class object on multi
JVM?
Answers were Sorted based on User's Feedback
Answer / balu
Its possible to write a singleton class by
storing/serializing the singleton object into a flatfile
and use it across all the JVM's. By which it ensures that
only one instance is crested and used across multiple JVM's.
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / boka
How would you maintain the state of the object across the
JVM... if a singleton is being worked upon on multiple JVMs
and each one changes the state of Singleton how would this
be maintained. I dont think that Singleton across JVMs
makes any sense...
| Is This Answer Correct ? | 6 Yes | 1 No |
How can we break singleton in java?
What is :: operator in java 8?
Is an integer an object?
what is template design pattern?
what is the difference between the "protected and default" modifiers?
What is the use of string and stringbuffer?
How is garbage collection controlled?
What is 3-tier model?
What are adapter classes?
what is the diff between Servletcontext and servletconfig?
What does the “static” keyword mean?
What access modifiers can be used for methods?