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 » Using a Trigger to move a message from one queue to another

Post new topic  Reply to topic
 Using a Trigger to move a message from one queue to another « View previous topic :: View next topic » 
Author Message
compfreak
PostPosted: Tue Sep 22, 2009 3:42 am    Post subject: Using a Trigger to move a message from one queue to another Reply with quote

Newbie

Joined: 22 Sep 2009
Posts: 3

Dear experts,

I need to transfer a amessage from one queue to another. Within this process the message Id of the ne message should bcome the correlation id from the source message.

I think this can be done using a MQ trigger. Or is there any other way except purchasing an MQ addon for defining routing rules?

I am not an MQ expert, but I am an IT professional. So it should be no problem to write a trigger. But I have no clue how to do this.

Therefore I kindly ask, whether a member of this forum can give me a guidiance or at least a link to a configuration and coding examples.

Thanks and kind regards,

Compfreak
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Sep 22, 2009 4:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The only event that you can cause with MQ Triggering is to start a program.

You can write a program to move the messages, and start that program from an MQ trigger.

You can not use normal MQ configuration of any sort to alter a message, to for example move the MsgId to the CorrelID. You must write or buy a program.
Back to top
View user's profile Send private message
compfreak
PostPosted: Tue Sep 22, 2009 4:51 am    Post subject: Reply with quote

Newbie

Joined: 22 Sep 2009
Posts: 3

Hi,

thanks for your reply. Do you have an example for a program which can be used as an example?

That would be of great help.

With kind regards,

Compfreak
Back to top
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Tue Sep 22, 2009 4:59 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

is this homework? have you had a look at any MQ program so far? or at the API manual?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
compfreak
PostPosted: Tue Sep 22, 2009 8:49 am    Post subject: Reply with quote

Newbie

Joined: 22 Sep 2009
Posts: 3

No this is no homework. I am searching thru the internet the whole day already. But I really couldn't find a starting point. It is very difficult if
you are not really familiar with a specific program or subject.

Therefore I am asking at least to get a starter, which can then guide me thru the process.

With kind regards,

Compfreak
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Sep 22, 2009 9:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

compfreak wrote:
Therefore I am asking at least to get a starter, which can then guide me thru the process.


There's sample code on this site, and supplied with the product.

compfreak wrote:
I am searching thru the internet the whole day already. But I really couldn't find a starting point


I'm surprised that in a whole day of searching you didn't see the link to the InfoCentre at the top of this page, and the section about starting applications with triggering which explains all this.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General IBM MQ Support » Using a Trigger to move a message from one queue to another
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.