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 » Broker 6.1 Shared Row Locks

Post new topic  Reply to topic
 Broker 6.1 Shared Row Locks « View previous topic :: View next topic » 
Author Message
jonesn
PostPosted: Thu May 14, 2009 1:52 am    Post subject: Broker 6.1 Shared Row Locks Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 47

Chaps,

I am working on a flow which reads records from a file and builds up a message containing information from about 900 rows. I use a couple of shared rows: one containing counts/totals and the other containing the message I am building up. This works OK till I try to update an element in one row with values from the other. I get an exception stating that I have attempted to get a write and a read lock. I would be grateful if anyone can explain how locking works when using shared rows.

Thanks
_________________
---

Nick Jones
IBM Certified Solutions Expert (WebSphere MQ Integrator)
Back to top
View user's profile Send private message
mgk
PostPosted: Thu May 14, 2009 2:20 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Posting your code would be helpful, but essentially you have a readLock if the ROW is on the right of an '=' and a writeLock if it is on the left of an '=' You cannot have both at once. Therefore assign the value you are reading to a temp variable then assign the temp value back to the tree.

regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
jonesn
PostPosted: Thu May 14, 2009 3:01 am    Post subject: Reply with quote

Apprentice

Joined: 09 Jan 2002
Posts: 47

Thanks MGK,

By wrapping the expression to the right of the assignment in FIELDVALUE it converts to scalar & the assignment is successful. I am assuming it was failing because of the tree copy limitation I just discovered.

FYI here is the code fragment.

Set outRef.esb:invoiceNumber = fieldvalue (headRef.batchNumber);
Set outRef.esb:invoiceDate = fieldvalue (headRef.todaysYYYYMMDDChar);


Thanks
_________________
---

Nick Jones
IBM Certified Solutions Expert (WebSphere MQ Integrator)
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 » Broker 6.1 Shared Row Locks
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.