Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java EE Application-scoped variables in a clustered environment (Websphere)?

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.

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)

like image 650
WayneC Avatar asked Jan 05 '12 15:01

WayneC


People also ask

How to set environment variables in WebSphere application server?

To specify an environment variable as an environment entry, in the administrative console, click Servers > Server Types > WebSphere application servers > server_name . Then, under Server Infrastructure, click Java process management > Process definition > Environment entries.

What is WebSphere variables?

WebSphere variables are name and value pairs that are used to provide settings for any of the string data type attributes contained in one of the XML formatted configuration files that reside in the product repository.


1 Answers

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.

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.)

like image 194
dbreaux Avatar answered Sep 30 '22 07:09

dbreaux