Author |
Message
|
shashivarungupta |
Posted: Wed Feb 25, 2009 2:56 am Post subject: One interview QUestion that I came accross !! |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
HI ALL,
I came across one question that had been asked :
Q: How can we automatically bounce/recycle the applications connecting to the queue manager, when we bounce the queue manager. That means after stop and start of the queue manager how can we bounce the applications connecting to it automatically?
Please give me some clue.
I have an idea of writing a unix script which will monitor the status of queue manager and will respond accordingly.
Do you have any better solution?
Thanks
Varun Gupta |
|
Back to top |
|
 |
dgolding |
Posted: Wed Feb 25, 2009 3:13 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
I'm assuming this isn't a certification question, if it is, nice try
use the start and stop service commands - as the queue manager comes up, so do they - and as it comes down, they do too (if you auto start and shutdown, I think there is a separate option to continue after queue manager shutdown, check the manual)
of course, it will start as user "mqm"
Good luck with the interview  |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Feb 25, 2009 3:24 am Post subject: RE |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
dgolding wrote: |
I'm assuming this isn't a certification question, if it is, nice try
use the start and stop service commands - as the queue manager comes up, so do they - and as it comes down, they do too (if you auto start and shutdown, I think there is a separate option to continue after queue manager shutdown, check the manual)
of course, it will start as user "mqm"
Good luck with the interview  |
this is not the certification question.
Anyways..
I agree when the queue manager is down the application connecting to it will also come down.
Is it really true that when queue manager will come up ..the appli. will also come up always. I dont think so. As JVM can go down after 'n' no. of connection retries. And when the QM will come up then appli. had to be bounced.
In another scenario:
But say then after I made the changes to the channel which requires the application jvm bounce then how the application will come to know.
In that case how can we make it automatically ?
Thanks
Varun Gupta |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 25, 2009 3:41 am Post subject: Re: RE |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
In that case how can we make it automatically ? |
Buy monitoring software (e.g. Tivoli). Set a rule.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Feb 25, 2009 3:49 am Post subject: Re: RE |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
In that case how can we make it automatically ? |
Buy monitoring software (e.g. Tivoli). Set a rule.  |
If i don't have Tivoli then ?
As I don't have it. Neither Wily.
Any better solution.
Thanks
Varun Gupta
 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 25, 2009 3:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
An app won't go down if the queue manager it is connected to goes down.
A queue manager might not go down if an app connected to it doesn't.
The answer the interviewer was looking for depends entirely on what position you were interviewing for.
If I asked this question of a developer, I'd expect one answer and a different answer if I asked it of an MQ Admin.
Youv'e already gotten a good solid answer from dgolding. Please don't try to use this forum as a training resource. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Feb 25, 2009 4:02 am Post subject: RE |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
mqjeff wrote: |
An app won't go down if the queue manager it is connected to goes down.
A queue manager might not go down if an app connected to it doesn't.
The answer the interviewer was looking for depends entirely on what position you were interviewing for.
If I asked this question of a developer, I'd expect one answer and a different answer if I asked it of an MQ Admin.
Youv'e already gotten a good solid answer from dgolding. Please don't try to use this forum as a training resource. |
Though I can discuss and point the questions out of the answers.
I got to think all the scenarios.
Anyways.. thanks a lot sir.
Appreciate your time, help and suggestions.
Thanks to all. |
|
Back to top |
|
 |
|