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 » IBM MQ Installation/Configuration Support » Triggering

Post new topic  Reply to topic Goto page 1, 2  Next
 Triggering « View previous topic :: View next topic » 
Author Message
MichaelBulla
PostPosted: Wed Nov 15, 2006 3:21 am    Post subject: Triggering Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 15, 2006 3:24 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=25092
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Nov 15, 2006 3:26 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Nov 15, 2006 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Wed Nov 15, 2006 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
MichaelBulla
PostPosted: Wed Nov 15, 2006 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 15, 2006 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message
MichaelBulla
PostPosted: Mon Nov 20, 2006 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
dutilleul
PostPosted: Wed Nov 22, 2006 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
exerk
PostPosted: Thu Nov 23, 2006 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
MichaelBulla
PostPosted: Tue Nov 28, 2006 8:10 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 28, 2006 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message
MichaelBulla
PostPosted: Tue Nov 28, 2006 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 28, 2006 8:22 am    Post subject: Reply with quote

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
View user's profile Send private message
anantha sreenivasan
PostPosted: Tue Nov 28, 2006 10:31 am    Post subject: Triggering Channels Automatically Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Triggering
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.