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 indexof?
What are the differences between include directive and include action?
Does java trim remove newline?
What is native code?
How to store image in arraylist in java?
What is a list in java?
What is an interface in java?
WAP to illustrate the use of interface
Is java pure object oriented or not? if yes, give the valid reason.
13 Answers Emphasis, NIIT, Syntel, Wipro,
how do you store phone numbers using java collections
what is the difference between a threads start() and run() methods? : Java thread
Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain