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 » CachePut multiple key data pair

Post new topic  Reply to topic
 CachePut multiple key data pair « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Wed Jun 22, 2011 9:07 am    Post subject: CachePut multiple key data pair Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I am testing IA91 in WMB V61
I have no problem setting the Cache and getting data back if my CachePut is
<go>
<key>key1</key>
<data>11111</data>
</go>

If I tried the Input
<go>
<key>key1</key>
<data>11111</data>
<key>key2</key>
<data>22222</data>
<key>key3</key>
<data>33333</data>
</go>
I still only able to get data fior Key 1 back.
There is an 2005 entry in the forum saying that the CachePut only works with one key data pair. I have to flatten the structure if I have multiple key data pair to input.
Is my understanding correct ? Is there any enhancement to this since 2005 ?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 22, 2011 9:47 am    Post subject: Reply with quote

Jedi Knight

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

You may like to create your own HashTable owned by a Singleton, which is what IA91 uses under the covers. As many in this forum would point out, some Java knowledge is needed to do this successfully. The benefit to owning your source code is, you can modify the code to fit your purpose.
_________________
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: Wed Jun 22, 2011 9:50 am    Post subject: Reply with quote

Grand High Poobah

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

Singleton!

lancelotlinc wrote:
The benefit to owning your source code is, you can modify the code to fit your purpose.




This must be weighed against the cost of reinventing a wheel. And how good the publicly available wheel is, and how closely it meets your needs.

Would you write a JCN that sends emails? Probably not.
Would you write your own cache? Less clear cut.

There have been many, many discussions on the various ways you can potentially store data in this way that you might find useful. Many triggered by the quirks of this support pac.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tfhays
PostPosted: Wed Jun 22, 2011 10:15 am    Post subject: Reply with quote

Newbie

Joined: 18 Jan 2006
Posts: 8

I'm the author of IA91.

IA91 nodes will only see the first key/data. This is just a limitation that has always been there.

However, if you use ESQL and the Cache ESQL calls, you can go directly to any part of the message tree you want.

IA91 has certainly been updated since 2005, so make sure you have the latest from the SupportPac website. The ESQL calls are fully documented.[/quote]
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Wed Jun 22, 2011 10:23 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Thanks for the updates
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 » CachePut multiple key data pair
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.