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 » Do MQ provide the trigger and message removal

Post new topic  Reply to topic
 Do MQ provide the trigger and message removal « View previous topic :: View next topic » 
Author Message
pradeepr
PostPosted: Wed Apr 09, 2003 9:21 am    Post subject: Do MQ provide the trigger and message removal Reply with quote

Newbie

Joined: 09 Apr 2003
Posts: 1

Hi All,

I have following queries.

1. I am having application A running.Whenever there is any change in the application A database,I should able to put the message on the MQ which will deliever and update the other application database.
My restriction is that I should not change the Application A code.
Can I provide the trigger from the database OR is there any other solution.

2. How the messages are removed.Should it done manaully or by queue manager.


Regards,
Pradeep
Back to top
View user's profile Send private message
mqonnet
PostPosted: Wed Apr 09, 2003 10:10 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Triggering is an option but not in the first stage.

Stage 1: You have to have an application or some way of putting a message onto a queue that has triggering set to say that there was a new update to the DB.

Stage 2: The message when put on the local queue with all the trigger conditions met, would generate a trigger message and invoke the application you wish to trigger. This app should then retrieve the message and update the App b Database.

Message would be removed as part of stage 2 processing by your app b.

Hope this helps.

Cheers
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Wed Apr 09, 2003 11:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Pradeep:

Let me add to what Kumar said.

There are DataBase triggers that would invoke applications when there is an update or insert or delete etc depending on what your DB is. I know there are triggersfor DB2 and Oracle and most likely there are triggers for other popular databases too. The application that is invoked by the database trigger can be something that would PUT a message to a queue. This message can go anywhere (may be to another machine on a different platform ).

When there is a message either
1. you can have an app running perpetually to read and process (do DB updates etc) the message
2. Trigger (this is MQ trigger) an app to process the message.

If your database is Oracle, all this is done through a product sold by Oracle and it is called Oracle MQ adapter.

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Do MQ provide the trigger and message removal
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.