Author |
Message
|
mouli |
Posted: Wed Jan 19, 2005 3:32 pm Post subject: Java PCF command to inquire about queue |
|
|
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 |
|
 |
csmith28 |
Posted: Wed Jan 19, 2005 3:49 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Jan 19, 2005 7:12 pm Post subject: |
|
|
 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 |
|
 |
vennela |
Posted: Wed Jan 19, 2005 11:15 pm Post subject: |
|
|
 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 |
|
 |
mouli |
Posted: Thu Jan 20, 2005 5:28 am Post subject: |
|
|
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 |
|
 |
mouli |
Posted: Thu Jan 20, 2005 7:07 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Jan 20, 2005 12:41 pm Post subject: |
|
|
 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 |
|
 |
|