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 » IBM MQ Java / JMS » Java PCF command to inquire about queue

Post new topic  Reply to topic
 Java PCF command to inquire about queue « View previous topic :: View next topic » 
Author Message
mouli
PostPosted: Wed Jan 19, 2005 3:32 pm    Post subject: Java PCF command to inquire about queue Reply with quote

Newbie

Joined: 19 Jan 2005
Posts: 3

Is there a way to use PCF command to inquire about a user's OAM authorization to get and put to a queue. I tried passing MQCACF_USER_IDENTIFIER parameter to MQCMD_INQUIRE_Q command. But it throws exception Reason code 3015 (not sure what exactly it is, but other postings on this group say it is invalid parameter for the command).

Any help would be appreciated.

-Mouli
Back to top
View user's profile Send private message Yahoo Messenger
csmith28
PostPosted: Wed Jan 19, 2005 3:49 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Why don't you just log on to the MQManager server and run the dspmqaut command?

Syntax for dspmqaut can be found in the WMQ Systems Administration Guide.

Oh and BTW 3015 is an MQRCCF_CFST_PARM_ID_ERROR
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 19, 2005 7:12 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As intellectual exercise you could start a java triggered process that reads the message from MQ gets the parms from the message, runs the dspmqaut and puts its output back into the reply message.

Way too complicated if you have access to the server with the correct authorization(cf Chris' post) --- as I said intellectual exercise....

Enjoy
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Wed Jan 19, 2005 11:15 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I don't know much about PCF but I toook a quick look at the PCF manual and looks like instead of using Inquire Queue you should be looking at Inquire Authentication Information Object
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mouli
PostPosted: Thu Jan 20, 2005 5:28 am    Post subject: Reply with quote

Newbie

Joined: 19 Jan 2005
Posts: 3

Thanks for the replies guys!!
"Inquire Authentication Info Object" gives LDAP based information when used with SSL.

Didn't want to use dspmqaut initially because I need to do this check programmatically. Executing dspmqaut from a java process through Runtime.getRuntime() would not be very portable and we need this agent running on about 5-6 platforms.

Programmatic access to dspmqaut kind of information through a PCF like framework would have been the most useful architecture.

A java triggered process is an interesting thought!! Let me mull over it.

Thanks,
-Mouli
Back to top
View user's profile Send private message Yahoo Messenger
mouli
PostPosted: Thu Jan 20, 2005 7:07 am    Post subject: Reply with quote

Newbie

Joined: 19 Jan 2005
Posts: 3

Is there a programmatic access to WMQ OAM? Looks like OAM stores information about access control in system.auth.data.queue. Is there a java API to access the contents?
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Thu Jan 20, 2005 12:41 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Check out the support pack for saving authorizations....

But to get the information in a "human" readable way your best bet is still dspmqaut / dmpmqaut.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java PCF command to inquire about queue
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.