If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Cobol Stored Procedures commit question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-09, 13:30
rsreeni rsreeni is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
Cobol Stored Procedures commit question

Hi,

We are planning to use a COBOL Stored procedure called from an J2EE application to perform updates into DB2 Db in mainframe. DB2 Stored procedures which run under the WLM, are they part of the J2EE container Transaction or not? My concern is that when the stored procedure complets and returns back to the Java code, are the updates committed at that point?

Thanks,

-Sreeni
Reply With Quote
  #2 (permalink)  
Old 08-13-09, 06:28
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Yes. The transaction-logic is controlled by the java-client (in your case the J2EE container). This is normal behaviour and can be overrulled if you wish.
Look at this (slide 14) http://www.mdug.org/f13.ppt

Last edited by dr_te_z; 08-16-09 at 09:49.
Reply With Quote
  #3 (permalink)  
Old 08-14-09, 17:36
rsreeni rsreeni is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks a lot.

-SR
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On