由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Will Singleton Pattern work in Clustered Env?
相关主题
question: how to implement this问关于SUN JAVA RE 的
Converge of languages and design pattern问个SOAP Service的问题
Core J2EE Design PatternAndroid C/C++ native calls Java APIs
求一本关于Design Pattern,UML和JAVA的经典书籍basic java question
How is the Jboss AS performance?static getInstance()
Java/J2EE的书Singleton vs. static class?
关于Java design pattern要准备java面试, 看什么书比较好?
纯ajax的app是不是比mvc的要难很多thread safe Singleton 的几种方法?
相关话题的讨论汇总
话题: singleton话题: pattern话题: env话题: clustered话题: work
进入Java版参与讨论
1 (共1页)
A**o
发帖数: 1550
1
大家有什么看法?成还是不成?
m******t
发帖数: 2416
2

As a pattern, it still works. The implementation obviously will be a lot
more complicated.

【在 A**o 的大作中提到】
: 大家有什么看法?成还是不成?
h*********o
发帖数: 62
3
quite hard to sync the singleton intances in a cluster if you have to. One
solution is to code a mediator on top of the cluster.
Actually singleton can also be a problem when you deploy your app as ear to
an application server in java.
g******u
发帖数: 153
4
Very hard to do this, the easiest way I can think is having a centralized
server and publish it as a service. let all the other server call this
service.
t*******e
发帖数: 684
5
把singlton的state存入database,或用cluster wide transactional cache。
1 (共1页)
进入Java版参与讨论
相关主题
thread safe Singleton 的几种方法?How is the Jboss AS performance?
Java EE 习题 1Java/J2EE的书
看到一个关于singleton的面试题关于Java design pattern
Singleton纯ajax的app是不是比mvc的要难很多
question: how to implement this问关于SUN JAVA RE 的
Converge of languages and design pattern问个SOAP Service的问题
Core J2EE Design PatternAndroid C/C++ native calls Java APIs
求一本关于Design Pattern,UML和JAVA的经典书籍basic java question
相关话题的讨论汇总
话题: singleton话题: pattern话题: env话题: clustered话题: work