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 > URGENT!!!!!! DB2 Stored Procedures!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-04, 17:49
maxdp maxdp is offline
Registered User
 
Join Date: Dec 2003
Posts: 11
URGENT!!!!!! DB2 Stored Procedures!

Hi,
I'm trying to implement the following process:

When a record is inserted into a table, a trigger is invoked which calls a stored procedure, passing it a table locator (a pointer to the record in memory which has been inserted). This SP then formats the record and calls another routine which writes the formatted record to a remote q (MQSeries q). But there is no commit in the whole process, only the application which inserts the record into the table issues the commit. The problem here is that the messages are getting stuck in the xmit q, and according to MQ Support, it's presumably because they have not been committed. Has anyone faced the same issue and if so, were they able to resolve it or is this something which cannot be done?

THIS IS AN URGENT ISSUE, so pls reply asap.

Maxdp.
******
Reply With Quote
  #2 (permalink)  
Old 01-14-04, 18:01
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: URGENT!!!!!! DB2 Stored Procedures!

Quote:
Originally posted by maxdp
Hi,
I'm trying to implement the following process:

When a record is inserted into a table, a trigger is invoked which calls a stored procedure, passing it a table locator (a pointer to the record in memory which has been inserted). This SP then formats the record and calls another routine which writes the formatted record to a remote q (MQSeries q). But there is no commit in the whole process, only the application which inserts the record into the table issues the commit. The problem here is that the messages are getting stuck in the xmit q, and according to MQ Support, it's presumably because they have not been committed. Has anyone faced the same issue and if so, were they able to resolve it or is this something which cannot be done?

THIS IS AN URGENT ISSUE, so pls reply asap.

Maxdp.
******
As far as I understand, MQ commit has nothing to do with the database transaction commit. So I guess you should commit the MQ messages, and it will not affect the database transaction...
Reply With Quote
  #3 (permalink)  
Old 01-14-04, 19:19
maxdp maxdp is offline
Registered User
 
Join Date: Dec 2003
Posts: 11
hi n_i, the problem is that i cannot issue the mq commit - the reason being that the process has been designed such that the record shud be rolled back from both the queue and the table if the record inserting program (into the table) encounters any error. if i issue a commit upon putting a msg into the q, then it cannot be rolled back later. and i cannot issue a db2 commit in the sp either since the effect is the same.
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