|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PCF LIKE NOT WORKING |
« View previous topic :: View next topic » |
Author |
Message
|
pcouas |
Posted: Thu Feb 07, 2019 8:36 am Post subject: PCF LIKE NOT WORKING |
|
|
Voyager
Joined: 06 Sep 2011 Posts: 79
|
Hi
LIKE Command not Working
I want only AUTH_PROFILE_NAME begin by name Q
Regards
Code: |
public List<String[]> findAllArrayString(String qmanagerName)throws JrafDaoException {
PCFMessageAgent pcfMessageAgent = null;
List<String[]> listOLists = new ArrayList<String[]>();
try {
MqQmanager qm = qmanagerDAO.findByName(qmanagerName);
PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_AUTH_RECS);
request.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS, CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING + CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT + CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD);
request.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
//request.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "Q*"); //not working
//request.addFilterParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, CMQCFC.MQCFOP_NOT_LIKE, "Q*"); //not workibg
request.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q); //Type Queue
pcfMessageAgent = openNewPCFMessageAgent(qm);
PCFMessage[] responses = pcfMessageAgent.send(request);
log.info("never here");
return listOLists;
} catch (MQException ex) {
throw new JrafMQQmanagerException(qmanagerName,ex);
} catch (IOException | JrafDomainException | RuntimeException ex) {
throw new JrafDaoException(ex);
} finally {
closePCFMessageAgent(qmanagerName,pcfMessageAgent);
}
}
|
|
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Feb 07, 2019 8:51 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Please be more precise.
What does ‘not working’ mean to you? Compile errors? Run-time error? If so, what errors do you see?
What have you tried? What results? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Feb 07, 2019 1:47 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
hughson |
Posted: Thu Feb 07, 2019 2:48 pm Post subject: Re: PCF LIKE NOT WORKING |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
pcouas wrote: |
Hi
LIKE Command not Working
I want only AUTH_PROFILE_NAME begin by name Q
|
I don't think it is possible to do what you want.
See the description of Inquire Authority Records (PCF command).
It says of the ProfileName field:-
IBM Knowledge Center wrote: |
If you set Options to MQAUTHOPT_NAME_AS_WILDCARD, the only valid value for ProfileName is a single asterisk (*). This means that all authority records that satisfy the values specified in the other parameters are returned. |
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
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
|
|
|
|