Author |
Message
|
MichaelBulla |
Posted: Wed Nov 15, 2006 3:21 am Post subject: Triggering |
|
|
Apprentice
Joined: 27 Sep 2006 Posts: 31 Location: Hamburg/Germany
|
Hi,
I searched a way to start channels automatically and found triggers and initiation queues. These things sound cool to me. But I dont get them to run.
I use WMQ6. My first try was to set a trigger on the transmissionQ. I used MQ Explorer to enable triggering, set the triggertype to all and initiationQ to SYSTEM.CHANNEL.INITQ.
Then I sent a message to transmissionQ and the channel wasnt activated. I tried a lot and nothing worked.
Now I created a new qmgr for tests. On this qmgr I created two Qs. One called "initq" and one called "q". I configured the same trigger as described above on q, but configured initq as initiationQ. I hoped to find a message in the initq, but it was empty.
Can anybody tell me: What do I have to do to start triggering?
Bye Michael |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 15, 2006 3:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 15, 2006 3:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
What status was the channel in when you tried to trigger it? If the status was "STOPPED" the trigger won't work.
Trigger should also be FIRST not EVERY (I assume that's what you meant by all) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
exerk |
Posted: Wed Nov 15, 2006 3:45 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
I used MQ Explorer to enable triggering, set the triggertype to all and initiationQ to SYSTEM.CHANNEL.INITQ.
Did you put the CHANNEL NAME in the TRIGGER DATA attribute of the Transmission queue? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Nov 15, 2006 3:58 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
I hoped to find a message in the initq, but it was empty. |
No, you will most likely never find a message in the initq ... read Jeff's TT link for the reason why.... _________________ -wayne |
|
Back to top |
|
 |
MichaelBulla |
Posted: Wed Nov 15, 2006 4:09 am Post subject: |
|
|
Apprentice
Joined: 27 Sep 2006 Posts: 31 Location: Hamburg/Germany
|
Vitor wrote: |
What status was the channel in when you tried to trigger it? If the status was "STOPPED" the trigger won't work.
Trigger should also be FIRST not EVERY (I assume that's what you meant by all) |
Yes, I meant EVERY, I use german language in MQ Explorer, so sometime I have to guess the english expression.
Now that I use FIRST it works, but I think, it would have to run even when I use EVERY?!?
Thanks to jefflowrey for the link. I think it will help in future.
Btw: im using german language in MQExplorer involuntary, because it uses systemlanguage. Can anybody tell me, how to switch MQ Explorer to english language?
Bye Michael |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 15, 2006 4:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No reason to set it to EVERY.
The MCA will process *every* message on the transmit queue, when it is started when the *first* one message triggers the channel.
And you don't want multiple copies of the channel running, each trying to send only one message. One channel sending all messages is best. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MichaelBulla |
Posted: Mon Nov 20, 2006 7:48 am Post subject: |
|
|
Apprentice
Joined: 27 Sep 2006 Posts: 31 Location: Hamburg/Germany
|
MichaelBulla wrote: |
Btw: im using german language in MQExplorer involuntary, because it uses systemlanguage. Can anybody tell me, how to switch MQ Explorer to english language?
|
For anybody, who has the same problem. Its the file:
/opt/mqm/ies30/eclipse/configuration/config.ini
entries:
org.osgi.framework.language=en
osgi.nl=en_US
Last edited by MichaelBulla on Tue Nov 28, 2006 8:04 am; edited 1 time in total |
|
Back to top |
|
 |
dutilleul |
Posted: Wed Nov 22, 2006 1:43 am Post subject: |
|
|
 Newbie
Joined: 23 Feb 2006 Posts: 7 Location: Bruxelles
|
MichaelBulla wrote: |
MichaelBulla wrote: |
Btw: im using german language in MQExplorer involuntary, because it uses systemlanguage. Can anybody tell me, how to switch MQ Explorer to english language?
|
For anybody, who has the same problem. Its the file:
/opt/mqm/ies30/eclipse/configuration/config.ini
entries:
org.osgi.framework.language=en
osgi-nl=en_US |
Hi Michael,
I try to apply the same tips on a windows machine unsuccesfully.
I've updated the file [installation_dir]\EclipseSDK30\eclipse\configuration\config.ini with the same value you gived, but the MQExplorer language stay unchanged.
Do you know the tips on windows ? Is it a registry value ?
Thanks in advance for help. |
|
Back to top |
|
 |
exerk |
Posted: Thu Nov 23, 2006 4:04 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Quote: |
Then I sent a message to transmissionQ and the channel wasnt activated. I tried a lot and nothing worked |
I've just re-read your initial post, so did you send the message directly to the TXQ or did you send it via a QREMOTE def? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
MichaelBulla |
Posted: Tue Nov 28, 2006 8:10 am Post subject: |
|
|
Apprentice
Joined: 27 Sep 2006 Posts: 31 Location: Hamburg/Germany
|
dutilleul wrote: |
Hi Michael,
I try to apply the same tips on a windows machine unsuccesfully.
I've updated the file [installation_dir]\EclipseSDK30\eclipse\configuration\config.ini with the same value you gived, but the MQExplorer language stay unchanged.
Do you know the tips on windows ? Is it a registry value ?
Thanks in advance for help. |
Im sorry, I had a typo in my post. The correct term should be
org.osgi.framework.language=en
osgi.nl=en_US
Maybe thats the problem. In other case you should look in an eclipse-Forum for help. Afaik Langugage settings are done by the the underlaying eclipse-framework.
@exerc
I send message directly (exactly let them route) to the transmitQ. Does it make a difference?
Bye Michael[/b] |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 28, 2006 8:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
MichaelBulla wrote: |
@exerc
I send message directly (exactly let them route) to the transmitQ. Does it make a difference? |
You should never open a transmit queue for output directly. The message will be directly written to the XMIT queue *without* the necessary MQXQH and not go anywhere. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
MichaelBulla |
Posted: Tue Nov 28, 2006 8:21 am Post subject: |
|
|
Apprentice
Joined: 27 Sep 2006 Posts: 31 Location: Hamburg/Germany
|
I dont open it directly by a MQPUT, I tell the queuemanager to send a message to queue://managername/queuename.
So I dont use a remotequeue to send the message to a remotemanager. Thats what I meant by "directly".
Bye Michael |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 28, 2006 8:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
so "queuename" is not the name of the transmit queue, and "managername" is the name of the remote queue manager, and also the name of the XMITQ that you have configured against the sender channel that goes to the remote queue manager? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
anantha sreenivasan |
Posted: Tue Nov 28, 2006 10:31 am Post subject: Triggering Channels Automatically |
|
|
Acolyte
Joined: 26 Sep 2006 Posts: 72
|
Here goes the setup for Triggering Channels
Assume the following Transmission Queue setup
Transmit Queue Name: TRANSMIT.QUEUE(say)
Property on the Transmit Queue
Trigger Type : First
Trigger Control : On
Trigger Data : <Channel Name you wish to start>
Initiation Queue Name: SYSTEM.CHANNEL.INITQ
Now Just try putting a message on any remote queue pointing to Tranmission Queue TRANSMIT.QUEUE. The Channels should now be triggered. This should work 100% perfect.
If you define your own initq and associate to a transmit queue then you need to explicitly start the channel initiator pointing to the initq as follows
runmqchi -m <Queue Manager Name> -q <Your own initq name>
Get back to me if either of the setups doesn't work
[/quote] |
|
Back to top |
|
 |
|