Don Hill
Posts: 70
Nickname: ssswdon
Registered: Jul, 2002
|
|
Re: Will singleton work in multiple Vms
|
Posted: Sep 19, 2002 9:41 AM
|
|
Are you referring to seperate JVM, in that case no, remember there can only be one instance per jvm, the pools aren't shared accross VM. Take the case of a static method, there is one copy per JVM so if I have JVM one do a set on a static method and JVM 2 call a get, the value won't be there be cause the object pools are different.
You would need to create some other type of persistance mech to do this ie:persist to db or file system.
HTH
|
|