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 » General IBM MQ Support » which message comes to INIT queue

Post new topic  Reply to topic Goto page 1, 2  Next
 which message comes to INIT queue « View previous topic :: View next topic » 
Author Message
suneel
PostPosted: Fri Apr 15, 2011 7:23 am    Post subject: which message comes to INIT queue Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Apr 15, 2011 7:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The documented message goes to the initq.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 15, 2011 7:28 am    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message
shashivarungupta
PostPosted: Fri Apr 15, 2011 12:08 pm    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Fri Apr 15, 2011 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Fri Apr 15, 2011 3:57 pm    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message
suneel
PostPosted: Fri Apr 15, 2011 9:17 pm    Post subject: Reply with quote

Voyager

Joined: 06 Nov 2009
Posts: 89

Hi Gupta ,

Please answer the questions you have asked as well.
Back to top
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Sat Apr 16, 2011 12:21 am    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Sat Apr 16, 2011 1:32 am    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message
shashivarungupta
PostPosted: Sat Apr 16, 2011 3:35 am    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sat Apr 16, 2011 4:25 am    Post subject: Re: which message comes to INIT queue Reply with quote

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
View user's profile Send private message
shashivarungupta
PostPosted: Sat Apr 16, 2011 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Apr 16, 2011 9:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Sat Apr 16, 2011 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
shashivarungupta
PostPosted: Sat Apr 16, 2011 9:56 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General IBM MQ Support » which message comes to INIT queue
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.