Re: Sharing singleton objects across JVMs
Posted By:
Andrei_Melejik
Posted On:
Friday, June 11, 2004 07:38 AM
Use the third host with Windows OS installed.
Develop and run COM service on it (your singleton object).
Use jni (jglue) to access COM service from solaris boxes with java.
Re: Sharing singleton objects across JVMs
Posted By:
Sean_Owen
Posted On:
Wednesday, June 9, 2004 10:16 AM
No, there is no way to do this. You'll have to come up with another way to synchronize data between the two instances, like by putting it into the database, or else re-consider whether you really need the Singleton pattern, and exactly one instance across all machines. Maybe you don't actually need that.