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 » IA91 Cache Functionality - item expiry

Post new topic  Reply to topic
 IA91 Cache Functionality - item expiry « View previous topic :: View next topic » 
Author Message
SapanaK
PostPosted: Mon Sep 17, 2012 2:32 am    Post subject: IA91 Cache Functionality - item expiry Reply with quote

Newbie

Joined: 17 Sep 2012
Posts: 9

We are using IA91 supportpack in our project for its in-memory cache functionality. Context -
1. Only ESQL api's are being used, there is no cache node.
2. Items in cache are expected to expire at midnight.

I have observed that items in cache expire few hundred milliseconds prior to expected time, has anyone else experienced this?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 17, 2012 5:00 am    Post subject: Reply with quote

Jedi Knight

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

Why is this a problem? If it is a problem, expire your messages at 12:01. Or better yet, use solidDb, a Singleton, or a Java HashMap. All these are accessible from ESQL and give you more finite control.
_________________
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
SapanaK
PostPosted: Mon Sep 17, 2012 5:19 am    Post subject: Reply with quote

Newbie

Joined: 17 Sep 2012
Posts: 9

Thanks for your reply. This is a problem becuase our application rely on finding data only in cache. If not found in cache it doesn't do further database lookup before concluding that item is not found.

I will get the expiryTime changed, but wanted to know at high level to what extent is it guaranteed to be accurate - meaning to specified seconds/minutes etc, so that I can safely move it accordingly.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 17, 2012 5:31 am    Post subject: Reply with quote

Jedi Knight

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

SapanaK wrote:
to what extent is it guaranteed to be accurate


If you read the disclaimer on the support pak there is an explicit statement:

Quote:
Category 2 SupportPacs are provided in good faith and AS-IS. There is no warranty or further service implied or committed and any supplied sample code is not supported via IBM product service channels.


Use a Singleton or a HashMap if you want a guarantee.
_________________
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
Vitor
PostPosted: Mon Sep 17, 2012 5:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

lancelotlinc wrote:
Use a Singleton or a HashMap if you want a guarantee.


Or move to WMBv8 where the caching functionality is in the product rather than a Cat 2 support pac.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IA91 Cache Functionality - item expiry
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.