Author |
Message
|
Trinity |
Posted: Tue May 06, 2003 5:04 pm Post subject: Need answers to 2 questions? |
|
|
 Newbie
Joined: 05 May 2003 Posts: 9 Location: Michigan
|
Can anyone help me with the following questions? The answers I think are bolded. Am I right? If I am wrong, whats the right answer and why?
1. An application sends a message to a remote queue specifying MQRO_EXPIRATION and an expiry of 1 minute. If the Channel is not active, what would happen to the message when the time expires?
---It is removed from the system.
---It is transferred to the DEAD LETTER QUEUE.
---It stays on the transmission Queue.
---It is transmitted on an alternate channel.
2. In order to implement applications which require put and get operations to be performed under single phase commit facilities, which is required?
A. TXSeries for AIX
B. WebSphere Application Server
C. The MQCMIT and MQBACK MQI calls
D. A user-written external syncpoint coordinator |
|
Back to top |
|
 |
mgrabinski |
Posted: Tue May 06, 2003 9:44 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
1) This may be tricky The expired message is removed from the system (from application's point of view it is no longer available). But physically it will stay on the transmission queue for a while. Only when the channel agent will try to get it, it will be deleted. My final answer to that would be "It is removed from the system"
2) As simple as MQCMIT and MQBACK _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
mqonnet |
Posted: Wed May 07, 2003 5:11 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
I would differ on mgrabinski's 1st answer. The answer should be ---It stays on the transmission Queue. as is already highlighted.
The way expiry works(at least priorto 5.3) is that even after the message is expired it is Not pulled out of the queue unless someone does a get(be it a destructive or browse). And since in this case, the channels are not running which means there is nobody who issues a get. Hence the message even though expired would stay on the TQ. Unless someone else issues a get off the TQ or the channel is up and running.
Messages that have expired are removed off the queue as part of the get logic as of v5.2.1 or any versions prior to v5.3.
Hope this helps.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
dgolding |
Posted: Wed May 07, 2003 6:33 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
P.S. Question (2) then answer is (C) as this is an INTERNAL (single-phase) commit. |
|
Back to top |
|
 |
Trinity |
Posted: Wed May 07, 2003 7:04 am Post subject: |
|
|
 Newbie
Joined: 05 May 2003 Posts: 9 Location: Michigan
|
Thanks a lot for the reply.
For Question1: I do agree with Kumar - The message stays on the transmission queue. I have tested it and that is the resulting behaviour.
Thanks,
Su |
|
Back to top |
|
 |
EddieA |
Posted: Wed May 07, 2003 11:46 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
In fact both answers given for Question 1 are correct. It's kind of like "Is the glass half full, or half empty". Both are correct depending on which way you look at it.
The message will still be on the XMITQ and will count towards the number of messages shown by the Exploder, or runmqsc.
But when any application, including the MCA tries to read that message, it will NOT get it. It will be 'expired' and discarded by the GET/BROWSE request (non OS/390) or the GET request (OS/390).
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed May 07, 2003 12:43 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
Both are correct depending on which way you look at it. |
I agree with you, but the key here is that the question asked :
Quote: |
what would happen to the message when the time expires?
|
With this in mind the answer would have to be that it stays on the transmission queue wouldn't it?
I took my MQ exams back in 1998 and I quickly discovered that there are an awful lot of questions that are sneakily worded and some where the answers are really a matter of opinion. If your opinion doesn't agree with that of the person who set the question, then you get it wrong. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed May 07, 2003 1:42 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Q. What would happen to the message when it expired?
A. It would become unavailable to be retrieved by an MQGET.
Nothing else happens to the message at the instance that it finally expires.
Its not until something tries to get it that MQ then actually deletes the message from the queue, so that it no longer counts towards the queue depth. "Something" could be any application, an MCA or the utility available only on z/OS that periodically cleans up expired messages. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed May 07, 2003 1:53 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Peter,
Whilst you are strictly correct, that wasn't an option .
Therefore the only logical answer is that it remains on the transmission I would think.
... which just goes to prove my point about the questions (or rather the answers) being open to debate. |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed May 07, 2003 10:23 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Isn't it weird that all of us know the mechnism of deleting expired messages, and yet we can give different answers for the question posted?
After reading the question carefully I admit that your interpretation is better that mine.
I've passed 095 in 2001 with ease, tomorrow I'm going to pass the new exam - 294. I'm pretty confident about my MQ knowledge, but I'm afraid of questions like the one we are discussing. They are not difficult, but sometimes require guessing what the author had in mind.
See (write , actually) you tomorrow - I'll share my fresh opinions on the new exam with you. _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
Trinity |
Posted: Thu May 08, 2003 6:04 pm Post subject: |
|
|
 Newbie
Joined: 05 May 2003 Posts: 9 Location: Michigan
|
Do let us know of any questions you remember from the 294 Exam? Good Luck!
Thanks,
Su |
|
Back to top |
|
 |
mgrabinski |
Posted: Fri May 09, 2003 2:10 am Post subject: exam 294 |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi!
I've just passed the new MQ exam - 294.
I'm not able to cite individual questions (with one exception - there were 2 question concerning the Sales, Orders and Invoices managers from the pre-assesment test; setup same, but different questions). In general the questions are similiar to those found in the ICE tool.
From 71 question, the vast majority were pretty simple to answer, dozen or so made me think twice (or more and there were few that I had absolutely no idea about (mainly commands from iSeries - I haven't had any experience with this platform) and I had to guess.
I answered all question in half an hour and then spent another 30 minutes analyzing the questions I wasn't sure about. I finished after one hour. My score was 79%.
My advices:
- knowledge of many platoforms is a big advantage (I am best in MQ on z/OS, know Win and had some contact with AIX and Sun),
- many questions require knowing the difference between v5.3 and prior realeses
- read the Security manual, especialy the SSL part
- many questions are very specific, for example about some administrative commands; reading about them is not enough, you must have a hands-on experience to answer such questions _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
|