|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
How to use INQUIRE_ENTITY_AUTH in java?Why it's not working. |
View previous topic :: View next topic |
Author |
Message
|
crazy4j |
Posted: Sat May 07, 2011 6:23 pm Post subject: How to use INQUIRE_ENTITY_AUTH in java?Why it's not working. |
|
|
Newbie
Joined: 18 Apr 2011 Posts: 6
|
the following is my code,but it's not working.
it run with error:MQJE001: 完成代码为“2”,原因为“3015”。
It means MQRCCF_CFST_PARM_ID_ERROR.
Who can tell me how should I use this command?
Thanks very much.
Code: |
this.request = new PCFMessage(MQConstants.MQCMD_INQUIRE_ENTITY_AUTH);
this.request.addParameter(MQConstants.MQCACF_ENTITY_NAME,entityName.trim());
this.request.addParameter(MQConstants.MQIACF_ENTITY_TYPE, entityType);
this.request.addParameter(MQConstants.MQCACF_OBJECT_NAME, objectName);
this.request.addParameter(MQConstants.MQIACF_OBJECT_TYPE, objectType);
this.request.addParameter(MQConstants.MQIACF_AUTH_OPTIONS, MQConstants.MQAUTHOPT_CUMULATIVE);
this.responses = agent.send(this.request);
|
|
|
Back to top |
|
 |
fjb_saper |
Posted: Sat May 07, 2011 7:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
There was a post on exactly the same problem a few days ago. And IIRC it has been solved. Did you use search and see if the solution applies to you?
So you changed from AUTH_SERVICE to AUTH_ENTITY...
What parts of the manual did you research? What other parms are indicated on the exemples?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
crazy4j |
Posted: Sun May 08, 2011 7:56 am Post subject: |
|
|
Newbie
Joined: 18 Apr 2011 Posts: 6
|
|
Back to top |
|
 |
mqjeff |
Posted: Sun May 08, 2011 8:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So,
Quote: |
3015 (0BC7) (RC3015): MQRCCF_CFST_PARM_ID_ERROR
Explanation
Parameter identifier is not valid.
The MQCFST Parameter field value was not valid.
Programmer response
Specify a valid parameter identifier. |
So one of your string parameters is not the correct parameter.
Try commenting out your this.request.addParameter lines until you get a different MQRC, and then look at the one you just commented out.
You seem to be in the process of writing your own MQ monitoring application? Are you sure you should be doing this, and it is not a better idea to look into buying one? |
|
Back to top |
|
 |
aydink |
Posted: Fri Aug 28, 2015 10:04 am Post subject: |
|
|
Newbie
Joined: 28 Aug 2015 Posts: 2
|
I had the same problem and fixed it by setting the params in following order:
Code: |
PCFParameter[] parameters = {
new MQCFIN(MQConstants.MQIACF_AUTH_OPTIONS, MQConstants.MQAUTHOPT_CUMULATIVE),
new MQCFIN(MQConstants.MQIACF_OBJECT_TYPE, MQConstants.MQOT_Q),
new MQCFIN(MQConstants.MQIACF_ENTITY_TYPE, MQConstants.MQZAET_GROUP),
new MQCFST(MQConstants.MQCACF_ENTITY_NAME, entity.trim()),
new MQCFST(MQConstants.MQCACF_OBJECT_NAME, qname),
}; |
(THIS IS ONLY VALID FOR MQ V 7.0.1.*) |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 28, 2015 10:34 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
In general you should expect to have to put PCF parameters in the right order. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|