How singleton is javax.ejb.Singleton in a clustered environment?

后端 未结 3 1257
说谎
说谎 2020-12-31 19:42

I need to maintain a simple counter that is unique within the application, for all users and all nodes in a clustered environment. I thought about using the singleton sessio

3条回答
  •  情深已故
    2020-12-31 20:20

    You could use hazelcast . It's a distributed in-memory key-value store. Seems like it would be a perfect fit. It also implements JSR-107 which is the JCache spec.

提交回复
热议问题