Beena Bhatt

+ Follow
since May 09, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Beena Bhatt


Am facing a problem as described below

I need to cache some data for performance optimization.
For this I have bound my data object in the InitialContext.
Once bound it is not fetched again from anywhere and is used from the context itself.
There is also a method to invalidate this caching which simply gets the data again and re binds it in the context.
This works properly in case of a Standalone machine but when Clustering is done, the data is set for the each cluster node. This is also fine as there would not be any change in the performance but when it comes to invalidate the data, it is not possible to invalidate from all the nodes at a single go.

I read somewhere that the solution is to bind the object in the clusters shared context which runs on a different port. This would work in case of cluster but would cause a problem in case of Standalone machine.

As the same code is run for some clients on Standalone machines and for some on Clustered environment, have no clue how to solve this.

If you have a solution please reply ASAP.

18 years ago