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 » MbGlobalMap transactionality (javadoc question)

Post new topic  Reply to topic
 MbGlobalMap transactionality (javadoc question) « View previous topic :: View next topic » 
Author Message
agulowaty
PostPosted: Fri Jan 24, 2014 3:02 am    Post subject: MbGlobalMap transactionality (javadoc question) Reply with quote

Newbie

Joined: 21 Aug 2013
Posts: 8

Hi guys,

Could someone briefly explain what is the semantic of relationship between get() and put() described in MbGlobalMap javadoc:

http://pic.dhe.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.plugin.doc/com/ibm/broker/plugin/MbGlobalMap.html#put(java.lang.Object,%20java.lang.Object) where they said:

Quote:

public Object put(Object key, Object value) throws MbException

Fails if the key already exists within this map, unless preceded by a get() call on the same key within the same transaction.


What's a transaction here ? Since we know each operation on cache has its own transaction ?
We're struggling with multi instance use case where we have multiple flows with JavaCompute bombarded with thousands of messages and need to decide, basing on map content, whether we should put some of these requests to MQ Queue.

Any advice would be greatly appreciated.
Back to top
View user's profile Send private message
stoney
PostPosted: Mon Jan 27, 2014 4:40 am    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2013
Posts: 140

The Javadoc for MbGlobalMap is incorrect and needs to be updated. It should just read:

Quote:
Fails if the key already exists within this map


You should use put() to insert new values, and update() to update existing values.
Back to top
View user's profile Send private message
agulowaty
PostPosted: Mon Jan 27, 2014 5:29 am    Post subject: Reply with quote

Newbie

Joined: 21 Aug 2013
Posts: 8

That's what I suspected - Javadoc was thoughtlessly copied from fully-fledged from eXtreme Scale or something like that.

Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 27, 2014 5:59 am    Post subject: Reply with quote

Grand High Poobah

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

Have either of you used the Feedback button thoughtfully provided on the InfoCenter?

You both should. Votes get changes.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
stoney
PostPosted: Mon Jan 27, 2014 9:09 am    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2013
Posts: 140

I have not. I made a change to the Javadoc comment instead
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jan 27, 2014 9:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

stoney wrote:
I have not. I made a change to the Javadoc comment instead


Here I was guessing you'd have to throw a brickbat at someone sitting nearby, instead.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 27, 2014 9:23 am    Post subject: Reply with quote

Grand High Poobah

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

stoney wrote:
I have not. I made a change to the Javadoc comment instead


If the InfoCenter is wrong, you should request the InfoCenter be changed.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jan 27, 2014 9:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
stoney wrote:
I have not. I made a change to the Javadoc comment instead


If the InfoCenter is wrong, you should request the InfoCenter be changed.


... unless you happen to be able to directly update it yourself.
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 » MbGlobalMap transactionality (javadoc question)
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.