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 object slice?
Is Java Class Threadsafe ????? How to make Java class Thread safe??
What is __ init __ functions?
What things should be kept in mind while creating your own exceptions in java?
How do you use, call, and access a non-static method in Java?
Can we override compareto method?
What is palindrome in java?
How many static init can you have?
which class is the wait() method defined in? : Java thread
How arrays are stored in memory in java?
Is java supports multiple inheritance? explain?
Is null or empty java?