|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CachePut multiple key data pair |
« View previous topic :: View next topic » |
Author |
Message
|
KIT_INC |
Posted: Wed Jun 22, 2011 9:07 am Post subject: CachePut multiple key data pair |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed Jun 22, 2011 9:47 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Jun 22, 2011 9:50 am Post subject: |
|
|
 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 |
|
 |
tfhays |
Posted: Wed Jun 22, 2011 10:15 am Post subject: |
|
|
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 |
|
 |
KIT_INC |
Posted: Wed Jun 22, 2011 10:23 am Post subject: |
|
|
Knight
Joined: 25 Aug 2006 Posts: 589
|
|
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
|
|
|
|