ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » MQ294 sample test

Post new topic  Reply to topic
 MQ294 sample test « View previous topic :: View next topic » 
Author Message
aphiwat
PostPosted: Sun Dec 21, 2003 2:58 am    Post subject: MQ294 sample test Reply with quote

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
View user's profile Send private message MSN Messenger
oz1ccg
PostPosted: Sun Dec 21, 2003 3:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Prahasith
PostPosted: Mon Dec 22, 2003 2:23 pm    Post subject: Reply with quote

Disciple

Joined: 16 May 2003
Posts: 184
Location: Kansas City

I guess for Q3 the answer is C
Back to top
View user's profile Send private message Send e-mail
Michael Dag
PostPosted: Mon Dec 22, 2003 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Prahasith
PostPosted: Mon Dec 22, 2003 3:11 pm    Post subject: Reply with quote

Disciple

Joined: 16 May 2003
Posts: 184
Location: Kansas City

try the answer B urself, you will find out
Back to top
View user's profile Send private message Send e-mail
Michael Dag
PostPosted: Tue Dec 23, 2003 12:23 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
vennela
PostPosted: Tue Dec 23, 2003 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ294 sample test
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.