Author |
Message
|
steiner |
Posted: Fri Mar 28, 2008 1:04 am Post subject: Trigger on a Queue with MQSeries V6.1 on Windows |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
i'm trying to put a Trigger on a Queue on a Queue Manager on Windows system (MQSeries V6).
How can I do it to write when a message arrives on the Queue directly in a file on the disk.
There are two methods : with a process or not.
Can anyone explain how to do it with the two methods.
In my first Job I did it on Unix system, but here on Windows I don't understand where to run the process : runmqtrm xxxx.
Can you help me.
Thanks in advance... |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 28, 2008 1:16 am Post subject: Re: Trigger on a Queue with MQSeries V6.1 on Windows |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
steiner wrote: |
How can I do it to write when a message arrives on the Queue directly in a file on the disk.
There are two methods : with a process or not.
Can anyone explain how to do it with the two methods.
|
Well I didn't know you could trigger anything other than a process so you know more about that than me. The process you trigger could be anything, so the sky's your limit on methods. My comments here:
http://www.mqseries.net/phpBB2/viewtopic.php?p=177668
apply (aside from the stuff about upgrading obviously!)
Also if all you want is message->file, you might want to consider one of the commerical products that can do this, rather than invent your own. Depends on your requirements, budget, etc, etc.
steiner wrote: |
In my first Job I did it on Unix system, but here on Windows I don't understand where to run the process : runmqtrm xxxx.
|
As a Windows service (equivalent of a demon) or background process. Check your Windows documentations for details. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Mar 28, 2008 1:31 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
|
Back to top |
|
 |
steiner |
Posted: Fri Mar 28, 2008 2:15 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
thanks for your answers. I need two Windows executables programs to make the Trigger : MQGET, and MQPUT.
Where can I find these two executables programs for Windows environnment.
Many Thanks, bye |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Mar 28, 2008 2:18 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
under Source Directory.
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
steiner |
Posted: Fri Mar 28, 2008 2:25 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
thanks but sorry there is no MQGET or MQPUT under Source (or Tools) directory.
I remenber it on Unix but on windows System is it perhaps otherwise.
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Fri Mar 28, 2008 2:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
steiner wrote: |
thanks but sorry there is no MQGET or MQPUT under Source (or Tools) directory. |
We've been through this before with you:
http://www.mqseries.net/phpBB2/viewtopic.php?p=180370
steiner wrote: |
I remenber it on Unix but on windows System is it perhaps otherwise. |
If things called MQGET & MQPUT exist on your Unix box, someone on the site wrote them or purchased them from a 3rd party. These are the names of MQI calls, not applications, samples or any kind of executable code supplied with the software. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
steiner |
Posted: Mon Mar 31, 2008 2:57 am Post subject: |
|
|
Voyager
Joined: 07 Mar 2003 Posts: 89
|
Hello,
i don't understand because i have experience on Unix system, but on Windows it doesn't work as the same.
On windows when I put the Trigger to ON and if I have on Triggdata c:\toto.txt so that the message will be written to that file it doesn't work (I have also an Initq Defined)
Must I have an process Runmqtrm on the background (as on Unix) and what is the correct syntax .
Could you please help me to understand that.
thanks a lot |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 31, 2008 3:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
steiner wrote: |
i don't understand because i have experience on Unix system, but on Windows it doesn't work as the same. |
It's amazing how many things don't work the same (or don't work at all) on Windoze.
So far as MQ triggering goes, it works the same on all the distributed platforms (including Windows).
steiner wrote: |
On windows when I put the Trigger to ON and if I have on Triggdata c:\toto.txt so that the message will be written to that file it doesn't work (I have also an Initq Defined) |
I'm surprised that works on Unix if you're not got a process defined that's using this data. Again you seem to know more than me on this.
[quote="steiner"]Must I have an process Runmqtrm on the background (as on Unix) and what is the correct syntax .
steiner wrote: |
Yes you must and the syntax is the same as for Unix.
Could you please help me to understand that.
thanks a lot |
_________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|