Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error creating queue with WebSphere MQ API

Tags:

java

ibm-mq

I trying to create queues using PCF command in the WebSphere API as detailed in $MQM_HOME/samp/pcf/samples/PCF_CreateQeue.java. The creation fails when i add a description

command.addParameter(PCFConstants.MQCA_Q_DESC, "Created using MQMonitor");

I get the error: com.ibm.mq.pcf.PCFException: MQJE001: Completion Code 2, Reason 3015 : MQRCCF_CFST_PARM_ID_ERROR Is there another way of setting the description, i'm using version 6 of the API.

like image 611
n002213f Avatar asked Mar 19 '26 12:03

n002213f


1 Answers

The Commands page in the PCF manual states that:

The required parameters and the optional parameters are listed. On platforms other than z/OS®, the parameters must occur in the order:

  1. All required parameters, in the order stated, followed by
  2. Optional parameters as required, in any order, unless specifically noted in the PCF definition.

The section Change, Copy and Create Queue lists the required parameters in the following order:

  1. MQCA_Q_NAME
  2. MQIA_Q_TYPE
  3. Optional parameters, including QDesc

The same manual provides required parameters and their order for all PCF commands so no need to play hide-and-seek trying out parms and orders in the future.

like image 113
T.Rob Avatar answered Mar 21 '26 00:03

T.Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!