Author |
Message
|
mqsiuser |
Posted: Thu Feb 05, 2015 2:17 am Post subject: PCF command reply - SUCCESS or FAILURE? |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
Dear PCF-Command-Experts ,
we have PCF-commands returning the following answer:
Code: |
00000000: '0000 0002 0000 0024 0000 0001 0000 0029 '.......$.......)'
00000010: '0000 0002 0000 0001 0000 0002 0000 0BC0 '...............'
00000020: '0000 0000 '.... ' |
So PCF-commands can answer with SUCCESS, FAILURE or DATA.
I guess this must be SUCCESS or FAILURE.
Does anyone see what it is ? _________________ Just use REFERENCEs |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 05, 2015 5:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
mqsiuser |
Posted: Thu Feb 05, 2015 6:54 am Post subject: |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
mqjeff wrote: |
The real question is - what's the PCF *command* you're sending? |
"Inquire Queue":
Code: |
SET OutputRoot.MQPCF.Type = MQCFT_COMMAND;
SET OutputRoot.MQPCF.StrucLength = MQCFH_STRUC_LENGTH;
SET OutputRoot.MQPCF.Command = MQCMD_INQUIRE_Q; |
_________________ Just use REFERENCEs |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 05, 2015 7:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Depending on version, OutputRoot.PCF might not actually be a PCF message.
I would double-check the message you're producing.
Also, you really do need to supply an MQCFST to specify the queue name, even if it's just * |
|
Back to top |
|
 |
mqsiuser |
Posted: Thu Feb 05, 2015 7:57 am Post subject: |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
Here is the full reply-msgs (including header fields):
Code: |
**** Message descriptor ****
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 2
Expiry : -1 Feedback : 0
Encoding : 273 CodedCharSetId : 819
Format : 'MQADMIN '
Priority : 0 Persistence : 0
MsgId : X'-------------'
CorrelId : X'-------------'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'QM12 '
** Identity Context
UserIdentifier : 'mquser '
AccountingToken : X'-------------'
ApplIdentityData : ' '
** Origin Context PutApplType : '7'
PutApplName : 'amqpcsea '
PutDate/PutTime : 'Thu Feb 05 15:18:08 CET 2015'
ApplOriginData : ' '
GroupId : X'000000000000000000000000000000000000000000000000'
GroupId as string: ........................
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
**** Message body ****
00000000: '0000 0002 0000 0024 0000 0001 0000 0029 '.......$.......)'
00000010: '0000 0002 0000 0001 0000 0002 0000 0BC0 '...............'
00000020: '0000 0000 '.... ' |
_________________ Just use REFERENCEs
Last edited by mqsiuser on Thu Feb 05, 2015 7:59 am; edited 1 time in total |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 05, 2015 7:59 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes, ok.
So, again, the MQCFH tells you how to unpack the bytes in the message.
And, again, the Broker parser PCF may not actually be an MQ PCF parser.
You should verify that the request message looks like a PCF message, and you are required to include the Queue name in the Inquire Queue request message. |
|
Back to top |
|
 |
|