Posted: Thu May 14, 2009 1:52 am Post subject: Broker 6.1 Shared Row Locks
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)
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.
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)
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