Author |
Message
|
Lakshmi |
Posted: Tue Sep 09, 2003 1:27 am Post subject: Answers Please.... |
|
|
Newbie
Joined: 09 Sep 2003 Posts: 4
|
Answers for these questions please.......
1.Consider adding the Customer EJB to a TravelApplication Enterprise Application. What is the BEST method permission to provide
access by the Agent role to the findCustomersByPhoneNumber method? Map the Agent role to:
A. Issue REFRESH SECURITY on the cluster repository queue manager
B. Issue REFRESH SECURITY on all queue managers with Q1 defined
C. Issue REFRESH SECURITY and REFRESH CLUSTER on QM1
D. Issue REFRESH SECURITY on QM1
2.The following shows three scripts for the RUNMQSC utility which define
various queues and channels, and which customise the queue manager.
The three queue managers are running on three machines.
These are:
1 - a Sales Office - queue manager SalesOfficeQM
2 - an Order Processing system - queue manager OrdersQM
3 - an Invoicing system - queue manager InvoiceQM
All three queue managers are interconnected.
The first queue manager runs the Sales Office.
This can send messages to both the Order
Processing system and the Invoicing system.
Sales Office - queue manager SalesOfficeQM
==========================================
ALTER QMGR DEFXMITQ('XmitOrdersQM') DEADQ('SalesOfficeQM.Dead.L.Queue')
DEFINE QLOCAL('SalesOfficeQM.Dead.L.Queue')
DEFINE QALIAS('PriorityOEntry') TARGQ('OnlineOEntry') DEFPRTY(5)
DEFINE QALIAS('BatchOEntry') TARGQ('OrderEntry') DEFPRTY(1)
DEFINE QALIAS('OnlineOEntry') TARGQ('OrderEntry') DEFPRTY(3)
DEFINE QREMOTE('OrderEntry') RNAME('OEntryQ') RQMNAME('OrdersQM') +
XMITQ('XmitOrdersQM')
DEFINE QREMOTE('InvoiceQry') RNAME('IInquiryQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceUpd') RNAME('IUpdateQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceQry.Fast') RNAME('IInquiryQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM.Fast')
DEFINE QREMOTE('Invoicing') RNAME() RQMNAME('XmitInvoiceQM')
DEFINE QLOCAL('XmitOrdersQM') USAGE(XMITQ)
DEFINE QLOCAL('XmitInvoiceQM') USAGE(XMITQ)
DEFINE QLOCAL('XmitInvoiceQM.Fast') USAGE(XMITQ)
DEFINE CHANNEL(SOQM.2.ORDQM) CHLTYPE(SDR) XMITQ('XmitOrdersQM')
DEFINE CHANNEL(SOQM1.2.INVQM1) CHLTYPE(SDR) XMITQ('XmitInvoiceQM')
DEFINE CHANNEL(SOQM2.2.INVQM2) CHLTYPE(SDR) XMITQ('XmitInvoiceQM.Fast')
The second queue manager runs the Order Processing system.
This receives messages from the Sales Office and can
send messages to the Invoicing system.
Order Processing System - queue manager OrdersQM
================================================
ALTER QMGR DEFXMITQ('XmitInvoiceQM') DEADQ('OrdersQM.Dead.L.Queue')
DEFINE QLOCAL('OrdersQM.Dead.L.Queue')
DEFINE QLOCAL('OEntryQ')
DEFINE QLOCAL('OInquiryQ')
DEFINE QREMOTE('InvoiceInqQ') RNAME('InvoiceInqQ') +
RQMNAME('InvoiceQM') XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceInqQ.Fast') RNAME('IInquiryQ') +
RQMNAME('InvoiceQM') XMITQ('XmitInvoiceQM.Fast')
DEFINE QLOCAL('XmitInvoiceQM') USAGE(XMIT)
DEFINE CHANNEL(SOQM.2.ORDQM) CHLTYPE(RCVR)
DEFINE CHANNEL(ORDQM.2.INVQM) CHLTYPE(SDR) XMITQ('XmitInvoiceQM')
The third queue manager runs on the invoicing system.
This has links from both the Sales Office and the
Order Processing system
Invoicing System - queue manager InvoiceQM
==========================================
ALTER QMGR DEADQ('InvoiceQM.Dead.L.Queue')
DEFINE QLOCAL('InvoiceQM.Dead.L.Queue')
DEFINE QLOCAL('IInquiryQ')
DEFINE QLOCAL('IUpdateQ')
DEFINE CHANNEL(SOQM1.2.INVQM1) CHLTYPE(RCVR)
DEFINE CHANNEL(SOQM2.2.INVQM2) CHLTYPE(RCVR)
DEFINE CHANNEL(ORDQM.2.INVQM) CHLTYPE(RCVR)
An application running in the Sales Office does a PUT1 of a message, setting queue name to 'IInquiryQ' and queue manager name
to 'InvoiceQM'. What is the final destination of the message?
A. queue IInquiryQ on queue manager InvoiceQM
B. queue InvoiceQM.Dead.L.Queue on queue manager InvoiceQM
C. queue OrdersQM.Dead.L.Queue on queue manager OrdersQM
D. The put fails with MQRC_UNKNOWN_XMIT_Q
3.The following shows three scripts for the RUNMQSC utility which define
various queues and channels, and which customise the queue manager.
The three queue managers are running on three machines.
These are:
1 - a Sales Office - queue manager SalesOfficeQM
2 - an Order Processing system - queue manager OrdersQM
3 - an Invoicing system - queue manager InvoiceQM
All three queue managers are interconnected.
The first queue manager runs the Sales Office.
This can send messages to both the Order
Processing system and the Invoicing system.
Sales Office - queue manager SalesOfficeQM
==========================================
ALTER QMGR DEFXMITQ('XmitOrdersQM') DEADQ('SalesOfficeQM.Dead.L.Queue')
DEFINE QLOCAL('SalesOfficeQM.Dead.L.Queue')
DEFINE QALIAS('PriorityOEntry') TARGQ('OnlineOEntry') DEFPRTY(5)
DEFINE QALIAS('BatchOEntry') TARGQ('OrderEntry') DEFPRTY(1)
DEFINE QALIAS('OnlineOEntry') TARGQ('OrderEntry') DEFPRTY(3)
DEFINE QREMOTE('OrderEntry') RNAME('OEntryQ') RQMNAME('OrdersQM') +
XMITQ('XmitOrdersQM')
DEFINE QREMOTE('InvoiceQry') RNAME('IInquiryQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceUpd') RNAME('IUpdateQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceQry.Fast') RNAME('IInquiryQ') RQMNAME('InvoiceQM') +
XMITQ('XmitInvoiceQM.Fast')
DEFINE QREMOTE('Invoicing') RNAME() RQMNAME('XmitInvoiceQM')
DEFINE QLOCAL('XmitOrdersQM') USAGE(XMITQ)
DEFINE QLOCAL('XmitInvoiceQM') USAGE(XMITQ)
DEFINE QLOCAL('XmitInvoiceQM.Fast') USAGE(XMITQ)
DEFINE CHANNEL(SOQM.2.ORDQM) CHLTYPE(SDR) XMITQ('XmitOrdersQM')
DEFINE CHANNEL(SOQM1.2.INVQM1) CHLTYPE(SDR) XMITQ('XmitInvoiceQM')
DEFINE CHANNEL(SOQM2.2.INVQM2) CHLTYPE(SDR) XMITQ('XmitInvoiceQM.Fast')
The second queue manager runs the Order Processing system.
This receives messages from the Sales Office and can
send messages to the Invoicing system.
Order Processing System - queue manager OrdersQM
================================================
ALTER QMGR DEFXMITQ('XmitInvoiceQM') DEADQ('OrdersQM.Dead.L.Queue')
DEFINE QLOCAL('OrdersQM.Dead.L.Queue')
DEFINE QLOCAL('OEntryQ')
DEFINE QLOCAL('OInquiryQ')
DEFINE QREMOTE('InvoiceInqQ') RNAME('InvoiceInqQ') +
RQMNAME('InvoiceQM') XMITQ('XmitInvoiceQM')
DEFINE QREMOTE('InvoiceInqQ.Fast') RNAME('IInquiryQ') +
RQMNAME('InvoiceQM') XMITQ('XmitInvoiceQM.Fast')
DEFINE QLOCAL('XmitInvoiceQM') USAGE(XMIT)
DEFINE CHANNEL(SOQM.2.ORDQM) CHLTYPE(RCVR)
DEFINE CHANNEL(ORDQM.2.INVQM) CHLTYPE(SDR) XMITQ('XmitInvoiceQM')
The third queue manager runs on the invoicing system.
This has links from both the Sales Office and the
Order Processing system
Invoicing System - queue manager InvoiceQM
==========================================
ALTER QMGR DEADQ('InvoiceQM.Dead.L.Queue')
DEFINE QLOCAL('InvoiceQM.Dead.L.Queue')
DEFINE QLOCAL('IInquiryQ')
DEFINE QLOCAL('IUpdateQ')
DEFINE CHANNEL(SOQM1.2.INVQM1) CHLTYPE(RCVR)
DEFINE CHANNEL(SOQM2.2.INVQM2) CHLTYPE(RCVR)
DEFINE CHANNEL(ORDQM.2.INVQM) CHLTYPE(RCVR)
An application running in the Sales Office does a PUT1 of a message, setting queue name to 'OEntryQ' and queue manager name
to 'XmitOrdersQM'. What is the final destination of the message?
A. queue OEntryQ on queue manager OrdersQM
B. queue OrdersQM.Dead.L.Queue on queue manager OrdersQM
C. queue SalesOfficeQM.Dead.L.Queue on queue manager SalesOfficeQM
D. queue XmitInvoiceQM on queue manager SalesOfficeQM |
|
Back to top |
|
 |
EddieA |
Posted: Tue Sep 09, 2003 7:03 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
I recognise those. They're from the Sample test.
Ignore the 1st one. That looks like the question randonising routine picked a question from another product, but gave suggested answers from MQ.
2. C
3. A
Maybe I should have answered this as 'Anonymous'. Donning the flameproof underware (in case of wrong answers. ). _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
mgrabinski |
Posted: Tue Sep 09, 2003 9:08 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
IMHO the reply for question 2 is D. At "Sales Office" there is neither queue remote named "InvoiceQM" nor xmitq with that name. The MQPUT1 will fail. _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 10, 2003 6:30 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Sorry:
Code: |
ALTER QMGR DEFXMITQ('XmitOrdersQM') DEADQ('SalesOfficeQM.Dead.L.Queue') |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
techno |
Posted: Thu Sep 18, 2003 7:51 pm Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
could you explain above two answers?
For any given qQueue and and qQMGR, it should be able to find qQueue as remote q or local q or transmit q? Also how is qQMGR is resolved. I am confused. Please let me understand them
Thanks |
|
Back to top |
|
 |
techno |
Posted: Thu Sep 18, 2003 8:00 pm Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Let me say that again.
(QMGR1, Q1 ) in Message Descriptor. Done PUT at QMGR2.
1. QMGR2 verifies qmgr name in message. Does not match.
2. See if Q1 is remote q.
3. See if default xmit q of QMGR2 is QMGR1.
4. If (2) is correct, the path would be resolved through remoteq def
5. If (3) is correct, look at the channel def for which q name QMGR2 is attached. and follow the path.
Are there any other paths, I am missing?
Thanks for any help. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Sep 19, 2003 7:06 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Lets see. First, the Queue Manager and Queue are in the Object Descriptor, not the Message Descriptor.
2. No. You specified an actual Queue Manager name, so why look for a Queue on this Queue Manager.
3. Not quite. Default XMIT Queue is just that - A Queue. It can be any name, and if it is going to be used, then it will be used regardless of it's name and the name of the destination Queue Manager.
So, by implication, 4 cannot happen.
5. QMGR2 is yourself.
I can't find it at the moment, but there is a table somewhere in the manuals that show you the steps MQ uses when it resolves which Channel to use for a message destined for a remote Queue Manager.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
raj.in |
Posted: Wed Oct 01, 2003 3:20 am Post subject: |
|
|
Novice
Joined: 15 Sep 2003 Posts: 10 Location: India
|
Also ,the selection of XmitQ when Qmgr sends messages to a remote Qmgr happens in these sequence
XmitQ named on the XMITQ attribute of the local definition of a remote queue.
XmitQ with the same name as the target Qmgr
XmitQ named on the DEFXMITQ attribute of the local Qmgr
Cheers
Raj |
|
Back to top |
|
 |
|