Author |
Message
|
issac |
Posted: Fri Feb 28, 2014 4:48 pm Post subject: A homework question: how to start 3 channels simutaneously? |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Hello, I found this question:
Quote: |
An administrator needs to start three channels (QM1.TO.QM2,
QM1.TO.QM3 and QM1.TO.QM4) simultaneously whenever a message is placed on queue QLOCAL on
QM1.
QLOCAL has been set for
triggering with trigger type as first. Which actions will accomplish this task?
A. Triggering more than one channel simultaneously is not possible.
B. Modify the trigger monitor interface program (TMI) to handle 3 channels simultaneously.
C. Modify the QLOCAL definition to include all channel names in trigger data attribute and initiation queue
as SYSTEM.CHANNEL.INITQ.
D. Modify the QLOCAL definition to include the name of the process definition which will execute a script
containing MQSC commands to start all
channels and initiation queue as INITQ to be monitored by trigger monitor process.
Answer: D
|
The book said the right answer is D. However I think B is also right.
What do you think about B: To modify a TMI program to start them simutaneously? I never wrote any TMI program myself. But it sounds working...
Thanks.
[/quote] _________________ Bazinga! |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 28, 2014 5:35 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Did you google to see if a Trigger Monitor Interface program even exists? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
issac |
Posted: Fri Feb 28, 2014 5:40 pm Post subject: |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Hi, thanks for the reply.
I looked it up in the InfoCenter, which talks about " trigger monitor application" using "WebSphere® MQ Trigger Monitor Interface (TMI)". So I though the TMI program might be an alternative name for trigger monitoring application ...
So ... is it possible to start 3 channels simutaneously using a trigger monitoring application ? I know too little about the programming thing... Sorry if this question looks really stupid. _________________ Bazinga! |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Feb 28, 2014 5:46 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
did you google 'how to start an mq channel?' There is a special-purpose program that starts channels. It is different from the one that starts applications.
what research have you done to answer the question yourself? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Mar 01, 2014 4:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What book?
This looks like a certification exam question. |
|
Back to top |
|
 |
issac |
Posted: Sat Mar 01, 2014 5:02 am Post subject: |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Wow... that would be nice.. It's from a Chinese book named MQ进阶与提高 _________________ Bazinga! |
|
Back to top |
|
 |
issac |
Posted: Sat Mar 01, 2014 5:09 am Post subject: |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
bruce2359 wrote: |
did you google 'how to start an mq channel?' There is a special-purpose program that starts channels. It is different from the one that starts applications.
what research have you done to answer the question yourself? |
I read about app trigering and channel trigger. The former requires a channel initiator, which WMQ has supplied and there has been no known api to the outside so far as I've learnt, and the later requires a triger monitor app, which is customizable through the TMI.
InfoCenter gives this about TMI:
Quote: |
Purpose: When a trigger-monitor application retrieves a trigger message (MQTM) from an initiation queue, the trigger monitor may need to pass some or all of the information in the trigger message to the application that is started by the trigger monitor. Information that may be needed by the started application includes TC2QN, TC2TD, and TC2UD. The trigger monitor application can pass the MQTM structure directly to the started application, or pass an MQTMC2 structure instead, depending on what is permitted by the environment and convenient for the started application.
|
After the above research, I still believe that by customizing the TMI app, it's possible to start 3 channels. When the app is invoked, it should be free to do whatever it wants. Then why not start 3 channels if that's what I want? _________________ Bazinga! |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Mar 01, 2014 6:14 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
issac wrote: |
bruce2359 wrote: |
did you google 'how to start an mq channel?' There is a special-purpose program that starts channels. It is different from the one that starts applications.
what research have you done to answer the question yourself? |
I read about app trigering and channel trigger. The former requires a channel initiator, which WMQ has supplied and there has been no known api to the outside so far as I've learnt, and the later requires a triger monitor app, which is customizable through the TMI.
InfoCenter gives this about TMI:
Quote: |
Purpose: When a trigger-monitor application retrieves a trigger message (MQTM) from an initiation queue, the trigger monitor may need to pass some or all of the information in the trigger message to the application that is started by the trigger monitor. Information that may be needed by the started application includes TC2QN, TC2TD, and TC2UD. The trigger monitor application can pass the MQTM structure directly to the started application, or pass an MQTMC2 structure instead, depending on what is permitted by the environment and convenient for the started application.
|
After the above research, I still believe that by customizing the TMI app, it's possible to start 3 channels. When the app is invoked, it should be free to do whatever it wants. Then why not start 3 channels if that's what I want? |
It seems to me that the purpose of the (certification) question is to discover if you understand triggering, how wmq implements triggering, and exactly what wmq can trigger.
You should consider downloading and reading WebSphere MQ Primer: An Introduction to Messaging and WebSphere MQ http://www.redbooks.ibm.com/abstracts/redp0021.html?Open
For more information about channels, download the WMQ Intercommunications manual. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Mar 01, 2014 9:03 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
issac wrote: |
After the above research, I still believe that by customizing the TMI app, it's possible to start 3 channels. When the app is invoked, it should be free to do whatever it wants. Then why not start 3 channels if that's what I want? |
I suppose anything is possible.
But, after doing the above research, why do you believe that this is even technically feasible? A good idea? A reasonable expectation? Even necessary? What would be the point of starting three channels when a message arrives on a local queue? What do you understand is the purpose of triggering a channel?
Does the "TMI app" even exist? Given the artifacts (queue definitions, process definitions, etc.), how will you pass it the names of three channels?
I might also suggest that you look up the definition of the idiom "red herring" here http://en.wikipedia.org/wiki/Red_herring. It is not uncommon for tests to include feasible-sounding but irrelevant data. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PaulClarke |
Posted: Sat Mar 01, 2014 11:41 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Starting 3 channels from one trigger seems a fairly odd thing to do to me but starting 2 doesn't seem so far fetched. For example, you might want both the request and reply channels started. If all your channels were sender/receiver pairs then this clearly wouldn't be necessary, one would expect the senders to all start automatically. However, if your return path was a requester/server channel pair then it would make perfect sense to want to start that one in addition to the sender/receiver pair for the request. Unfortunately MQ never got around to triggering requester channels. One needs to start them manually or have them automagically started via some other means.
How you would do it would depend on taste but modifying the channel initiator in some way does seem to be the hardest to me and fraught with hazard. Some form of script which is started when the sender is triggered which issues the appropriate commands to start both the channels does seem the simplest to me.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
zpat |
Posted: Sun Mar 02, 2014 12:09 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
D. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Mar 02, 2014 3:53 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
B might be feasible, but the examiner will be looking for the correct response, D. _________________ Glenn |
|
Back to top |
|
 |
|