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 Index » WebSphere Message Broker (ACE) Support » cniGetBrokerInfo Usage

Post new topic  Reply to topic
 cniGetBrokerInfo Usage « View previous topic :: View next topic » 
Author Message
MrVMax
PostPosted: Thu Nov 19, 2015 8:42 am    Post subject: cniGetBrokerInfo Usage Reply with quote

Novice

Joined: 01 Aug 2013
Posts: 23

Hi all,

I'm trying to get inside a developed node some information from the message broker about the Flow name using the cniGetBrokerInfo API.

But something seems to work not exactly as expected.

the structure

    typedef struct broker_info_st {
    int versionId;
    CCI_STRING_ST brokerName;
    CCI_STRING_ST executionGroupName;
    CCI_STRING_ST messageFlowName;
    CCI_STRING_ST queueManagerName;
    int commitCount;
    int commitInterval;
    int coordinatedTransaction;
    CCI_STRING_ST dataSourceUserId;
    CCI_STRING_ST applicationName;
    CCI_STRING_ST libraryName;
    } CNI_BROKER_INFO_ST;


after the call of
cniGetBrokerInfo( & rc, ( ( NODE_CONTEXT_ST * ) nc ) -> nodeObject, binfoPtr )

is supposed to contain inside the field messageFlowName a CCI_STRING_ST with the name of the message flow.

A CCI_STRING_ST has the structure:

    typedef struct string_st {
    CciChar* buffer;
    long bufferLength;
    long bytesOutput;
    long dataLength;
    } CCI_STRING_ST;


If I call the API I get the CCI_STRING_ST structure initialized in this way


    CciChar* buffer; 0
    long bufferLength; 0
    long bytesOutput; 0
    long dataLength; 5


Is it possible that You cannot call the API in every phase of the node life ? I mean especially in the registration phase ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 19, 2015 11:31 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

I would expect you to be able to call it post registration, post configuration (a little bit fuzzy on the 2 here). But certainly not pre-registration...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » cniGetBrokerInfo Usage
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.