Author |
Message
|
suneel |
Posted: Fri Apr 15, 2011 7:23 am Post subject: which message comes to INIT queue |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Hi,
I have a doubt here. I think when you post a message to a queue then it triggers the INIT queue. If i am correct then which message goes to INIT queue |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 15, 2011 7:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The documented message goes to the initq. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Apr 15, 2011 7:28 am Post subject: Re: which message comes to INIT queue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
suneel wrote: |
I think when you post a message to a queue then it triggers the INIT queue. |
Only if you've configured it to do that, and the criteria for that queue have been met.
suneel wrote: |
If i am correct then which message goes to INIT queue |
The one described in the documentation. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 15, 2011 12:08 pm Post subject: Re: which message comes to INIT queue |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
suneel wrote: |
Hi,
I have a doubt here. I think when you post a message to a queue then it triggers the INIT queue. If i am correct then which message goes to INIT queue |
Trigger msgs goes from qmgr to initQ, which contains the info. of process definition. _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 15, 2011 12:46 pm Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
suneel wrote: |
I have a doubt here |
You should have also asked the questions like... who picks the msgs from the initQ and how Qmgr comes to know about the trigger !
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
exerk |
Posted: Fri Apr 15, 2011 3:57 pm Post subject: Re: which message comes to INIT queue |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
Trigger msgs goes from qmgr to initQ, which contains the info. of process definition. |
Since when has an INITQ contained the PROCESS definition? _________________ 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 |
|
 |
suneel |
Posted: Fri Apr 15, 2011 9:17 pm Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Hi Gupta ,
Please answer the questions you have asked as well. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Sat Apr 16, 2011 12:21 am Post subject: Re: which message comes to INIT queue |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
shashivarungupta wrote: |
Trigger msgs goes from qmgr to initQ, which contains the info. of process definition. |
Since when has an INITQ contained the PROCESS definition? |
<From WMQ Admin Guide v6>
Initiation queues :
Initiation queues are queues that are used in triggering. A queue manager puts a trigger message on an initiation queue when a trigger event occurs. A trigger event is a logical combination of conditions that is detected by a queue manager.
For example, a trigger event might be generated when the number of messages on a queue reaches a predefined depth. This event causes the queue manager to put a trigger message on a specified initiation queue. This trigger message is retrieved by a trigger monitor, a special application that monitors an initiation queue. The trigger monitor then starts the application program that was specified in the trigger message.
AND THAT TRIGGER MSG FROM QMGR, CONTAINS SOME INFO. (i.e. PROCESS DEF.) WHICH WOULD BE USEFUL FOR TRIGGER MONITOR, IN ORDER TO KICK THE PROCESS/APPLICATION.
What do you think QMgr puts in the initQ
@Suneel : Hope you've got the answers, above ! (please read it carefully) _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
exerk |
Posted: Sat Apr 16, 2011 1:32 am Post subject: Re: which message comes to INIT queue |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
What do you think QMgr puts in the initQ |
A trigger message...
My point was that your answer inferred that the process definition is contained in the INITQ and not a reference to it in the trigger message. It is better to be absolutely precise when answering someone whom is unsure, to prevent adding to their confusion; whilst it may seem pedantic it can save a lot of head scratching. _________________ 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 |
|
 |
shashivarungupta |
Posted: Sat Apr 16, 2011 3:35 am Post subject: Re: which message comes to INIT queue |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
shashivarungupta wrote: |
What do you think QMgr puts in the initQ |
A trigger message... |
Okey.. then whats inside of that trigger message ?  _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Apr 16, 2011 4:25 am Post subject: Re: which message comes to INIT queue |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
shashivarungupta wrote: |
exerk wrote: |
shashivarungupta wrote: |
What do you think QMgr puts in the initQ |
A trigger message... |
Okey.. then whats inside of that trigger message ?  |
An MQTMC structure.
Please don't provide free training to people who aren't willing to read the documentation or aren't willing to show that they have tried to read the documentation. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Sat Apr 16, 2011 5:16 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
Since when has an INITQ contained the PROCESS definition? |
mqjeff wrote: |
An MQTMC structure. |
Yes exactly.. And MQTMC Structure contains the process definition. And its has following fields...
Code: |
C declaration
typedef struct tagMQTMC2 {
MQCHAR4 StrucId; /* Structure identifier */
MQCHAR4 Version; /* Structure version number */
MQCHAR48 QName; /* Name of triggered queue */
MQCHAR48 ProcessName; /* Name of process object */
MQCHAR64 TriggerData; /* Trigger data */
MQCHAR4 ApplType; /* Application type */
MQCHAR256 ApplId; /* Application identifier */
MQCHAR128 EnvData; /* Environment data */
MQCHAR128 UserData; /* User data */
MQCHAR48 QMgrName; /* Queue manager name */
} MQTMC2; |
mqjeff wrote: |
Please don't provide free training to people who aren't willing to read the documentation or aren't willing to show that they have tried to read the documentation. |
I'm not providing the free training to anyone specially to those who are not willing to read/learn... BUT I'm trying to say that I didn't post wrong before.
Thanks. _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Apr 16, 2011 9:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
At the risk of being pedantic, the trigger message does not contain the process definition, but it contains a reference to the process definition by way of the process name. It also contains some values used as overrides and gathered from either the process definition or the queue definition ...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
exerk |
Posted: Sat Apr 16, 2011 2:11 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
fjb_saper wrote: |
At the risk of being pedantic, the trigger message does not contain the process definition, but it contains a reference to the process definition by way of the process name. It also contains some values used as overrides and gathered from either the process definition or the queue definition ...  |
My point exactly! And kudos to mqjeff who most eloquently voiced what I was driving at... _________________ 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 |
|
 |
shashivarungupta |
Posted: Sat Apr 16, 2011 9:56 pm Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
By Process Definition I meant the information that it contains like Application ID, Application Type and Disposition !
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
|