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 » Commit the transaction at row level or at each update.

Post new topic  Reply to topic
 Commit the transaction at row level or at each update. « View previous topic :: View next topic » 
Author Message
Harshalw
PostPosted: Fri Aug 01, 2008 6:36 am    Post subject: Commit the transaction at row level or at each update. Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

Hi,

I am accessing the database DB2 from WMB 6.1 through compute node.
Compute node has a poperty - Transaction
where option Automatic is at Message flow level
and option Commit is at Node level.

In my Program, i will be updating DB2 table almost 100 times. And i need to commit after every transaction is successful. Please let me know what should be done for this.

Thanks
Harshalw.
Back to top
View user's profile Send private message
broker_new
PostPosted: Fri Aug 01, 2008 11:47 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

I didn't understand your question correctly but
First case if you are updating the database 100 times in a single transaction(in the compute node by using a loop) then you need to passthru('COMMIT') after each update statement.

If each update is a separate transaction then u can set transaction level to commit on the compute node which commits for each transaction.
Back to top
View user's profile Send private message
Harshalw
PostPosted: Sun Aug 03, 2008 11:43 pm    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

Does setting the commit as a transaction level property in compute node will commit as per transaction level or at after complete node processing ?

Also can i use passthru('COMMIT') for committin for per transaction
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Aug 04, 2008 12:36 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Harshalw,

Harshalw wrote:
Does setting the commit as a transaction level property in compute node will commit as per transaction level or at after complete node processing ?
At node level.

Harshalw wrote:
Also can i use passthru('COMMIT') for committin for per transaction
broker_new told you so above..

Regards.
Back to top
View user's profile Send private message Send e-mail
jeeth_m
PostPosted: Mon Aug 04, 2008 2:09 am    Post subject: Reply with quote

Voyager

Joined: 21 Jan 2002
Posts: 93

Broker_new,
I too have a similar question...



Lets say

counter = 0
while counter < 100
update database
passthru(commit)
end while

is this what is being suggested?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Commit the transaction at row level or at each update.
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.