Author |
Message
|
jhidalgo |
Posted: Thu Jan 22, 2009 2:56 pm Post subject: amqmdain vs strmqm |
|
|
 Disciple
Joined: 26 Mar 2008 Posts: 161
|
This is what it says in the manual:
Quote: |
Starting a queue manager service with amqmdain is not the same as using strmqm from the command line, because the WebSphere MQ service executes in a non-interactive session, running under a different user account.
|
But what does it really mean ?, processes always end up running with MQ's user. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 22, 2009 4:48 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you log into Windows, open a command prompt, and issue strmqm...
Then when you log out of windows, the qmgr will end.
Because you started the processes, even if they forked as the MUSR_MQADMIN. They are still children of your login process.
If you issue amqmdain, then it does an imitation of "net start" - it uses Windows APIs to tell the IBM WebSphere MQ Service to start and to start the qmgr as children of the service process. |
|
Back to top |
|
 |
kishi_25 |
Posted: Mon Oct 31, 2011 12:07 pm Post subject: |
|
|
Centurion
Joined: 19 Jul 2011 Posts: 100
|
hi mqjeff,
Is the below scenario applies (qmger ending if starts from command prompt), even if I start it from MQ Explorer.
i.e. if I start the QM from MQ explorer and log off then will the QM stop?
I'm guessing starting from command prompt and mq explorer will use different userid's.
let me know, your comments
EDIT by exerk: duplicate post below this one deleted. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 31, 2011 12:11 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kishi_25 wrote: |
Is the below scenario applies (qmger ending if starts from command prompt), even if I start it from MQ Explorer. |
Please don't reopen a thread from over 2 years ago; a lot can change. If you think it's relevent, start a new thread with a link.
kishi_25 wrote: |
i.e. if I start the QM from MQ explorer and log off then will the QM stop? |
What happens when you try it?
Another important question is why would you interactively go into MQExplorer to start a queue manager? Isn't that a little cumbersome given the alternatives available?
kishi_25 wrote: |
I'm guessing starting from command prompt and mq explorer will use different userid's. |
Why are you guessing that? Why are you guessing at all? Why are you not researcing and experimenting? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kishi_25 |
Posted: Mon Oct 31, 2011 12:28 pm Post subject: |
|
|
Centurion
Joined: 19 Jul 2011 Posts: 100
|
I'm using MQ explorer since there are only 2 QM.
Couple of days I started the QM in explorer
and still its running even after log off.
other than using strmqm, what other options we have?
for future, i will use new post. |
|
Back to top |
|
 |
kishi_25 |
Posted: Mon Oct 31, 2011 12:48 pm Post subject: |
|
|
Centurion
Joined: 19 Jul 2011 Posts: 100
|
hi,
I don't see any difference between strmqm and amqmdain..at least to start queue manager
For strmqm option,
I have tried to manually start from command prompt and start from explorer..and log off..after login some time, still QM is running.
Any other comments on this?
thanks, |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 31, 2011 1:10 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kishi_25 wrote: |
hi,
I don't see any difference between strmqm and amqmdain..at least to start queue manager
For strmqm option,
I have tried to manually start from command prompt and start from explorer..and log off..after login some time, still QM is running.
Any other comments on this?
thanks, |
strmqm has acquired a few new modes like -s or -si that give it the same type of behavior as amqmdain...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kishi_25 |
Posted: Mon Oct 31, 2011 1:28 pm Post subject: |
|
|
Centurion
Joined: 19 Jul 2011 Posts: 100
|
thats true..i'm reading in infocenter as strmqm -ss is equivalent to starting QM with amqmdain option |
|
Back to top |
|
 |
|