Solved

Share Objects at application level on clustered environment

Posted on 2014-01-05
2
378 Views
Last Modified: 2014-01-06
Dear Experts,

This might be old question, but I could not find the right solution. I have web application and deploying on WebSphere Community edition (WAS CE) server on 4 different machines for load balancing purpose.  I want to store some constant variables/objects among the four servers. I mean if I change the variable in web application on one server, same copy should be available for the web apps on other 3 servers. Since these variables/objects are not related to user session, so sticky-session will not help here. Whether JNDI is the best solution? kindly share your knowledge on any other better solutions/techniques.

Thanks in advance.
0
Comment
Question by:Gangadhara Melukote
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39758305
Depending on your exact requirements you could go down a number of different routes to get a solution.

Maybe something fairly simple like, serializing those variables/objects to either a filesysytem file (and having that file located on a shared drive, for example) or to a database, and then have the code on the 4 servers periodically check for updated values and reload.

Otherwise, you might need to look into a "distributed cache" type of solution. There are a number of different vendors for such a solution, such as...

http://ehcache.org/
http://www.hazelcast.com/
http://commons.apache.org/proper/commons-jcs/
...and many others

I can't really say more than just providing those suggestions, as that would require a lot more detail on your actual requirements, but start with looking into those (or others) and if you have further questions, post back here.
0
 

Author Closing Comment

by:Gangadhara Melukote
ID: 39760291
Thank you very much for your response. The 'hazelcast' resolved my problem!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
runtime exception 2 50
ejb message driven bean mdb creation steps 2 37
web project error add remove 1 56
netbeans can not run self signed app 8 14
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question