Solved

Share Objects at application level on clustered environment

Posted on 2014-01-05
2
372 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
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now