Author |
Message
|
aphiwat |
Posted: Sun Dec 21, 2003 2:58 am Post subject: MQ294 sample test |
|
|
Newbie
Joined: 20 Jun 2002 Posts: 7
|
Hi,
Anyone help me to answer the question below.
1). A travel service application includes EJBs representing Customers and Itineraries. The Customer Home defines the usual finder methods e.g., findCustomersByName() and findCustomersByPhoneNumber(). The Itinerary Home defines a finder supporting the association, namely findItinerariesByCustomer().
For security, three roles are defined:
o Client
o Agent
o TravelService
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). A WebSphere MQ client program written in java receives a 2059 (
MQRC_Q_MGR_NOT_AVAILABLE) error when attempting to connect to a queue manager. Which of the following should be verified to determine the cause of this problem?
A. The MQSERVER environment variable is set
B. The program has access to the client channel definition table
C. The program has set the MQ environment correctly
D. The queue manager's listener is running
E. The program has been compiled using the correct JDK
Select 2 answers.
3). Two WebSphere MQ applications are being deployed. One will put requests onto a queue. The other will get these requests off of the queue and process them. It has been determined that each application should only be able to open the queue in the mode that it uses. Which of the following runmqsc commands will enable this action to occur?
A. define ql(APPL.QUEUE)
define qalias(APPL.GET.QUEUE) targq(APPL.QUEUE) PUT(ENABLED) GET(DISABLED)
define qalias(APPL.PUT.QUEUE) targq(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
B. define ql(APPL.QUEUE)
define qalias(APPL.PUT.QUEUE) targq(APPL.QUEUE) PUT(ENABLED) GET(DISABLED)
define qalias(APPL.GET.QUEUE) targq(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
C. define ql(APPL.QUEUE)
define qmodel(APPL.PUT.QUEUE) like(APPL.QUEUE) PUT(ENABLED) GET(DISABLED)
define qmodel(APPL.GET.QUEUE) like(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
D. define ql(APPL.QUEUE) put(ENABLED) get(ENABLED)
alter ql(APPL.QUEUE) process(GetApplication) get(ENABLED)
alter ql(APPL.QUEUE) process(PutApplication) put(ENABLED
Thanks.
AW |
|
Back to top |
|
 |
oz1ccg |
Posted: Sun Dec 21, 2003 3:42 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi AW,
I'll try to answer...
Q1: I'll say the scenario is unclear, and therefore I don't have any guess.
Something is missing.
Q2: c+d
Because MQSERVER/channel-table is not available in JAVA. this kills a+b,
about 2059, the java code should work to give this error, so this will eliminate E. This leaves B+C back.
Q3:
B. define ql(APPL.QUEUE)
define qalias(APPL.PUT.QUEUE) targq(APPL.QUEUE) PUT(ENABLED) GET(DISABLED)
define qalias(APPL.GET.QUEUE) targq(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
because it do what we want as the only one with the right naming-convention..
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
Prahasith |
Posted: Mon Dec 22, 2003 2:23 pm Post subject: |
|
|
 Disciple
Joined: 16 May 2003 Posts: 184 Location: Kansas City
|
I guess for Q3 the answer is C |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Dec 22, 2003 2:31 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
I would go for Q3 = B.
Just out of curiosity: how would you get to answer C?
Michael |
|
Back to top |
|
 |
Prahasith |
Posted: Mon Dec 22, 2003 3:11 pm Post subject: |
|
|
 Disciple
Joined: 16 May 2003 Posts: 184 Location: Kansas City
|
try the answer B urself, you will find out |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Dec 23, 2003 12:23 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
well I use scenario B all the time!
now you explain to me how in answer C the data travels from the put queue to the get queue?
Michael |
|
Back to top |
|
 |
vennela |
Posted: Tue Dec 23, 2003 5:51 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Maybe Prahasith might have not observed that in C they are talking about model queues.
define qmodel(APPL.PUT.QUEUE) like(APPL.QUEUE) PUT(ENABLED) GET(DISABLED) |
|
Back to top |
|
 |
|