ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Java / JMSTOPIC COMMINFO value

Post new topicReply to topic
TOPIC COMMINFO value View previous topic :: View next topic
Author Message
pcouas
PostPosted: Tue Aug 20, 2019 8:25 am Post subject: TOPIC COMMINFO value Reply with quote

Voyager

Joined: 06 Sep 2011
Posts: 76

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
View user's profile Send private message
hughson
PostPosted: Tue Aug 20, 2019 8:44 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1277
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
View user's profile Send private message Visit poster's website
pcouas
PostPosted: Tue Aug 20, 2019 10:50 pm Post subject: Reply with quote

Voyager

Joined: 06 Sep 2011
Posts: 76

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
View user's profile Send private message
hughson
PostPosted: Wed Aug 21, 2019 6:49 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1277
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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Aug 21, 2019 9:07 pm Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20122
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
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSTOPIC COMMINFO value
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.