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 |
What is Classloader in Java?
How does callback work in java?
What is aggregation and composition ?
What is literal example?
Can a static method be final?
Why destructor is not used in java?
How many bytes is string in java?
What are the steps in the jdbc connection?
What is private public protected in java?
What are the different tags provided in jstl?
What is %02d?
What is difference between fail-fast and fail-safe?