Java EE应用程序范围的变量在集群环境(Websphere)中? [英] Java EE Application-scoped variables in a clustered environment (Websphere)?

查看:165
本文介绍了Java EE应用程序范围的变量在集群环境(Websphere)中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java EE应用程序(在Websphere上运行)是否有任何简单的方法可以在整个集群中的应用程序范围内共享对象?可能类似于Servlet Context参数,但它在集群中共享。

Is there any easy way in a Java EE application (running on Websphere) to share an object in an application-wide scope across the entire cluster? Something maybe similar to Servlet Context parameters, but that is shared across the cluster.

例如,在服务器集群A和B中,如果是值在服务器A(密钥=值)上设置,该值应立即(或几乎如此)可用于服务器B上的请求。

For example, in a cluster of servers "A" and "B", if a value is set on server A (key=value), that value should immediately (or nearly so) be available to requests on server B.

(注意:要避免如果可能的话,分布式缓存解决方案。这实际上不是缓存方案,因为存储的对象是相当动态的)

(Note: Would like to avoid distributed caching solutions if possible. This really isn't a caching scenario as the objects being stored are fairly dynamic)

推荐答案

我'我看着这个,看看是否有任何简单的解决方案,但我不知道自己。上次我问这样的问题时,答案是使用分布式对象存储。

I'm watching this to see if any simple solutions appear, but I don't know of any myself. Last time I asked something like this, the answer was to use a distributed object store.

我们的替代方案是通过HTTP手动通知已配置的URL列表,每个URL一个Web Container的直接服务器:端口组合。 (也就是说,绕过任何前端代理/网络服务器/插件。)

Our substitute was manual notification over HTTP to a configured list of URLs, one for each Web Container's direct server:port combination. (That is, bypassing any fronting proxy/web server/plugin.)

这篇关于Java EE应用程序范围的变量在集群环境(Websphere)中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆