ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue in take value from global cache for same key more time

Post new topic  Reply to topic
 Issue in take value from global cache for same key more time « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Mon Jul 01, 2013 12:55 am    Post subject: Issue in take value from global cache for same key more time Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Jul 01, 2013 3:19 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 01, 2013 3:39 am    Post subject: Re: Issue in take value from global cache for same key more Reply with quote

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
View user's profile Send private message Send e-mail
mahesh2069
PostPosted: Mon Jul 01, 2013 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 01, 2013 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Mon Jul 01, 2013 6:05 am    Post subject: Reply with quote

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
View user's profile Send private message
mahesh2069
PostPosted: Tue Jul 02, 2013 12:48 am    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jul 02, 2013 3:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mahesh2069 wrote:
Help ME...


How is it we can help you? Please share your JCN code as well as your policy file for the cache.

Did you try out the samples that come with the product? Did you follow the step-by-step instructions contained in that sample for configuring the cache? When do you plan to attend the required training?

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbn23780_.htm

Quote:
To use the global cache, select a broker-level cache policy by using the cachePolicy parameter.


If you have not changed the default cachePolicy, then what is the default set to?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue in take value from global cache for same key more time
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.