|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TOPIC COMMINFO value |
« View previous topic :: View next topic » |
Author |
Message
|
pcouas |
Posted: Tue Aug 20, 2019 8:25 am Post subject: TOPIC COMMINFO value |
|
|
Voyager
Joined: 06 Sep 2011 Posts: 79
|
Hi
i create my own REST service based on java PCF command since IBM Rest API is not complet
Currently my problem is on TOPIC object with CMQC.MQCA_COMM_INFO_NAME "comminfo" still empty ??
I could not reading this field ?
Could you confirm me that Java PCF library could reading this field
Regards
Code: |
JSON from my REST API
{
"name": "testPCS01",
"date": "2019-08-20 16:06:13",
"fieldmq": {
"topicstr": "",
"type": "LOCAL",
"descr": "DESC01",
"cluster": "DDD",
"pub": "DISABLED",
"sub": "ENABLED",
"dursub": "DISABLED",
"defprty": "ASPARENT",
"pmsgdlv": "ALLAVAIL",
"npmsgdlv": "ALLDUR",
"pubscope": "ALL",
"subscope": "QMGR",
"proxysub": "FIRSTUSE",
"wildcard": "BLOCK",
"mdurmdl": "C2.MQEMMO2.MQEMMO3.X.001.QAH",
"mndurmdl": "C1.PCS.001.QAP",
"usedlq": "NO",
"mcast": "ONLY",
"comminfo": "",
"custom": "",
"defpresp": "ASYNC"
}
} |
MQMON image with COMM INFO
[img]https://i.postimg.cc/gJPB2svJ/Topic-Comminfo.png[img]
https://postimg.cc/NypxN1Cq
 |
|
Back to top |
|
 |
hughson |
Posted: Tue Aug 20, 2019 8:44 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
You appear to have already proved that it does not work. Also I notice that DEFPSIST is missing entirely.
Suggest you raise a PMR with IBM to report the problems.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
pcouas |
Posted: Tue Aug 20, 2019 10:50 pm Post subject: |
|
|
Voyager
Joined: 06 Sep 2011 Posts: 79
|
Hi,
It is not IBM REST API it's my REST API that use JAVA PCF library.
CMQC.MQCA_COMM_INFO_NAME give me no answer
Code: |
public static final FieldPCF<Topic> COMMINFONAME = new FieldPCF<>(String.class, CMQC.MQCA_COMM_INFO_NAME);
public final static Field<Topic> COMMINFONAME = new Field<>("comminfo", FieldPCFTopic.COMMINFONAME);
Ok defPersistence is resolved
|
Regards |
|
Back to top |
|
 |
hughson |
Posted: Wed Aug 21, 2019 6:49 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
Then presumably the problem is in the Java API? Which should still be reported to IBM?
You don't show much of your code. I can tell you that MQCA_COMM_INFO_NAME is the correct constant to be using. The constant should have a value of 2110.
If you break in your program before you consume the response, can you view the response message to confirm that the data is coming back from the command server?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 21, 2019 9:07 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
hughson wrote: |
Then presumably the problem is in the Java API? Which should still be reported to IBM?
You don't show much of your code. I can tell you that MQCA_COMM_INFO_NAME is the correct constant to be using. The constant should have a value of 2110.
If you break in your program before you consume the response, can you view the response message to confirm that the data is coming back from the command server?
Cheers,
Morag |
Been using the PCF API a little bit more lately and have seen strange things...
I wonder if that attribute is one of those that gets always returned or if you have to ask for it and it is only present in particular cases???
 _________________ MQ & Broker admin |
|
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
|
|
|
|