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 » Message Broker with JDBC Adapter...

Post new topic  Reply to topic
 Message Broker with JDBC Adapter... « View previous topic :: View next topic » 
Author Message
kiran_mvr
PostPosted: Tue Jul 26, 2005 8:28 am    Post subject: Message Broker with JDBC Adapter... Reply with quote

Apprentice

Joined: 12 Dec 2004
Posts: 35

Can someone please explain how we could achieve this?

We are using Message Broker with JDBC adapter.
What will be the best way to do a two step database process in one call..

a) Insert data (BO)
b) Call Stored Proc

Need to roll back 'a' if 'b' fails.

Any reference, experience..will help.
_________________
Kiran_manny
Back to top
View user's profile Send private message
recallsunny
PostPosted: Tue Jul 26, 2005 10:57 am    Post subject: Reply with quote

Disciple

Joined: 15 Jun 2005
Posts: 163
Location: Massachusetts


You could try doing the insert within the stored Proc all in the same transaction... Send the parameters for insert as IN variables for the stored proc.

Use CreateSP attribute in the BO for invoking the SP using JDBC adapter.

Code:

CREATE OR REPLACE PROCEDURE XYZ (parms)
 AS
BEGIN
Insert into table
Exec your stored proc code
 COMMIT;
   
    EXCEPTION
         WHEN OTHERS THEN ROLLBACK; 
END


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Broker with JDBC Adapter...
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.