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 » read /update uncommitted database data

Post new topic  Reply to topic
 read /update uncommitted database data « View previous topic :: View next topic » 
Author Message
gs
PostPosted: Mon Feb 08, 2010 4:39 am    Post subject: read /update uncommitted database data Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

I'm working on an integration that takes an input message and inserts into / updates various tables in a DB2 database. I'm doing all work in a compute node with the database specified as a datasource.

Now, the incoming data -> database logic is quite extensive and I'm a bit unsure about how to handle the multiple inserts / updates in the same transaction.
How do I do I specify the transaction isolation level from the compute node and can I, in the same transaction, first insert a row and then update it?

Thanks

EDIT: I should note that this regards WMB version 6.0
Back to top
View user's profile Send private message
gs
PostPosted: Mon Feb 22, 2010 4:32 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

To answer my own question, this seems to be working as I wanted (ie. uncommitted data is selected and updated without problems).
Only thing that didn't work was a trigger that didn't update the uncommitted row.

If one would want to specify the transaction level, would it be possible using ESQL/ODBC?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 22, 2010 12:06 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

gs wrote:
To answer my own question, this seems to be working as I wanted (ie. uncommitted data is selected and updated without problems).
Only thing that didn't work was a trigger that didn't update the uncommitted row.

If one would want to specify the transaction level, would it be possible using ESQL/ODBC?


That would be difficult, as the DB trigger cannot be fired until the insert is committed...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » read /update uncommitted database data
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.