?
Solved

Share Objects at application level on clustered environment

Posted on 2014-01-05
2
Medium Priority
?
386 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 36

Accepted Solution

by:
mccarl earned 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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.…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 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