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 » General IBM MQ Support » MQ Triggering Stored Procedures

Post new topic  Reply to topic
 MQ Triggering Stored Procedures « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Thu Jul 23, 2009 8:13 am    Post subject: MQ Triggering Stored Procedures Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

I have used MQ from Stored Procedures. How can you start SP's from a queue trigger. What would you start?
Back to top
View user's profile Send private message Send e-mail AIM Address
WMBDEV1
PostPosted: Thu Jul 23, 2009 9:21 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

A java adapter?
A message broker flow?
Any other small application that can interface to both MQ and DB SPs.
Back to top
View user's profile Send private message
bobbee
PostPosted: Thu Jul 23, 2009 9:57 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

What I am wondering is if you have a Stored Procedure out in a database that is MQ enabled and you set triggering up on a queue how do start the stored procedure. I see with the XML extender for DB2 there is a DB2 MQ Listener. Is there another way to trigger the Stored Procedure to start from an MQ trigger. A Script, a command line. How?
Back to top
View user's profile Send private message Send e-mail AIM Address
sumit
PostPosted: Fri Jul 24, 2009 2:51 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

bobbee wrote:
Is there another way to trigger the Stored Procedure to start from an MQ trigger.

Try this- http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/fa11540_.htm
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
WMBDEV1
PostPosted: Fri Jul 24, 2009 3:16 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

sumit wrote:
bobbee wrote:
Is there another way to trigger the Stored Procedure to start from an MQ trigger.

Try this- http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/fa11540_.htm


I took the question to be more of a "what to call" rather than "how to trigger"... but I could have been wrong. OP to confirm
Back to top
View user's profile Send private message
sumit
PostPosted: Fri Jul 24, 2009 3:26 am    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

yes.. actually different questions in both posts. In 1st post, poster said
Quote:
What would you start?
and later in next post
Quote:
Is there another way to trigger the Stored Procedure to start from an MQ trigger.
bobbee can confirm what he wants.
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
bobbee
PostPosted: Fri Jul 24, 2009 3:43 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

yeah, I guess you can take it either way. Unfortunatly I have been working with MQ extensively since 1998. Some where along that way I figured out how triggering works. What I don't understand and canot seem to find is how to start a Stored Procedure in a DB when a message arrives on a queue. I did find that if you install XML Extender in DB2 they have an DB2MQListener process that will 'watch' a queue for messages and start a stored procedure. You can then interact with the QMGR from within the Stored Procedure.

For the last ump-teen years I have always heard that you can start Stored Procedures from an MQ Trigger. On retainer for NYC Train system we were using Oracle PL1SQL in Stored Procedures to process MQ messages. I was looking for a 'SIMPLE' method to start a Store Procedure when a message arrives on the queue. This question has nothing to do with the MQ Procedures.

Sorry if my question was not properly understood. Maybe this speaks for how 'not' simple this is. I was thinking there was a 'magic' button.
Back to top
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Sat Jul 25, 2009 2:20 am    Post subject: Reply with quote

Grand High Poobah

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

bobbee

The PL/SQL simple magic button has 2 ways to do this.

  • a triggered os script invoking a java program that will dequeue the message and invoke the stored procedure via jdbc
  • set up the oracle messaging gateway (MQ<->Oracle AQ)
    you can then access the message through PL/SQL and do everything from there. It may take a little extra configuration in case of a request / reply model, that both need to happen on the gateway and MQ... but those are hurdles easily overcome. We also made sure messages CCSID would be 1208 for both sides....

Have fun

[edit]Adding a 3rd one: using an MDB on the oracle app server to retrieve the message and jdbc to call the stored proc in Oracle...[/edit]
_________________
MQ & Broker admin


Last edited by fjb_saper on Sun Jul 26, 2009 1:49 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
bobbee
PostPosted: Sat Jul 25, 2009 6:33 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

Kewl and thank you. now to plow ahead to the next issue. Thanks everyone for the input. Greatly appreciated. BB
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Triggering Stored Procedures
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.