如何在cluster的J2EE系统中实现全局Singleton

当然,一般没有这种特殊需求,但是并不是没有,大家能否讨论一下?
注意因为是cluster ,说明是多个JVM:

补充,是有状态的singleton

我感兴趣的是你的对象是如何获得的?
在一个 CLUSTER 环境下,怎么获得一个对象的实例?

想一想 SUN 的 Solaris,它把 Cluster 做进了操作系统的内核里,
那么要真正控制好 Java Application Cluster, 我会选择去写 JVM ^_^

好像专门设置一台服务器 将singleton对象放在这一台机器中。

Maybe I did not understand your original question, but if App server support clustered JNDI, you can ensure that there is only one instance and it's available to all across the whole cluster.

-Wanchun

To: Jevang

Good idea.

JNDI Server is not so difficult to develop.