|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Issue in take value from global cache for same key more time |
« View previous topic :: View next topic » |
Author |
Message
|
mahesh2069 |
Posted: Mon Jul 01, 2013 12:55 am Post subject: Issue in take value from global cache for same key more time |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
HI WMB Developers,
I have an issue when retrieve values from global cache, form more than one time one key.First time I retrieve value from global cache for one key is successful,but I once again want to retrieve value from global cache for same key.Then debugging go to infinite loop.
Once get value from global cache,Is that cache is cleared? Shall I use same key once again? _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 01, 2013 3:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
global map get method is not the same as global map remove method.
Get method should leave the key in the cache. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 01, 2013 3:39 am Post subject: Re: Issue in take value from global cache for same key more |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mahesh2069 wrote: |
HI WMB Developers,
I have an issue when retrieve values from global cache, form more than one time one key.First time I retrieve value from global cache for one key is successful,but I once again want to retrieve value from global cache for same key.Then debugging go to infinite loop.
Once get value from global cache,Is that cache is cleared? Shall I use same key once again? |
This helpful, handy-dandy InfoCentre article describes the conditions upon which an item is removed from the cache:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbc23801_.htm
Quote: |
Title: Removing data from the global cache |
There are common knowledge items that one must adhere to:
1. The use of Google.
2. Reading the relevant articles found in step 1.
3. The acquisition of knowledge through the required training. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mahesh2069 |
Posted: Mon Jul 01, 2013 5:03 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi all,
In info center I read it , By default, the time to live is set to zero so that the data is never removed.
I have not specify any time interval ... if I want to specify To set a specific time to live, create a session policy, which you can reference from the MbGlobalMap object.
form first point, Data connot removed from cache if have not specify any time, But data removed from global cache, after getting data once from cache... _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jul 01, 2013 5:05 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mahesh2069 wrote: |
Hi all,
In info center I read it , By default, the time to live is set to zero so that the data is never removed.
I have not specify any time interval ... if I want to specify To set a specific time to live, create a session policy, which you can reference from the MbGlobalMap object.
form first point, Data connot removed from cache if have not specify any time, But data removed from global cache, after getting data once from cache... |
Perhaps attending the DEV 1 and DEV 2 training will clear any doubts you have, or show you the correct way to interact with the cache. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jul 01, 2013 6:05 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mahesh2069 wrote: |
Hi all,
In info center I read it , By default, the time to live is set to zero so that the data is never removed.
I have not specify any time interval ... if I want to specify To set a specific time to live, create a session policy, which you can reference from the MbGlobalMap object.
form first point, Data connot removed from cache if have not specify any time, But data removed from global cache, after getting data once from cache... |
Are you using the get method or the remove method?
It's not a hard question to answer. |
|
Back to top |
|
 |
mahesh2069 |
Posted: Tue Jul 02, 2013 12:48 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi ALL,
I am using get method to take value of key from global cache.After retrieve once from cache,that key-value pair discarded from cache..Once again i want to get the value, of same key debugging go to infinite loop.
Here I have not use any Session Policy in JCN.
I taken default MbGlobalMap object.So default time period of cache is infinite,So if we get value from key it should be given in JCN,But it won't display the value of key, It go to infinite loop.
Help ME... _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 02, 2013 3:14 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|