wood burning stoves 2.0*
The moose likes Websphere and the fly likes Distributed cache across multiple servants using Dynacache - WAS 6.1 in z/OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Distributed cache across multiple servants using Dynacache - WAS 6.1 in z/OS" Watch "Distributed cache across multiple servants using Dynacache - WAS 6.1 in z/OS" New topic
Author

Distributed cache across multiple servants using Dynacache - WAS 6.1 in z/OS

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
I am trying to configure distributed cache across 2 different servants (e.g., Servant 1 and Servant 2) under a single server in WAS 6.1 on z/OS. It is not a clustered environment. The goal is that key-value pairs of the same cache (e.g. myCache) will be available across 2 servants. What I am seeing instead is, the cache (myCache) is localized in servant 1 and servant 2 separately. In other words, myCache holds separate set of data in Servant 1 than in Servant 2. If a user (user1) is bound to servant 1, then the user sees key-value pair of myCache as 1, 2, 3 (as an example). On the contrary, if another user (user2) is bound to Servant 2, then the user sees a different set of data for myCache e.g., 4, 5, 6. The hope was I will be able to see the data from both Servant1 and Servant2 in myCache. If Servant 1 puts any value in myCache, it should be visible from Servant 2 and vice versa. The myCache should not keep two separate set of data in Servant 1 and Servant 2.

This is how I look up the value of myCache from Servlet:



Using the code above, I can successfully look up the keys from myCache for a servant1 and Servan2. But the keys retrieved are different in Servant 1 and Servant2.

I used the article below for reference:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tdyn_distmap.html

I am not offloading to disk yet, as I am trying to test with by putting a few key with values as (1,1/ 2,2 / 3,3) just for testing purposes. The server has been re-started, not the cell though. I have screen-shot of WAS server configuration.

Any suggestion will be appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Distributed cache across multiple servants using Dynacache - WAS 6.1 in z/OS
 
Similar Threads
DistributedMap setTimeToLive API-Can it be configured in App Server console on JNDI resource
please answer this 128 questions for WLS. Urgently!
synchronization suggestion needed
WebSphere dynamic cache and serialization
run more mains in Java