Home > Class Reference > ENSLIB namespace > %Net.MQSub

%Net.MQSub

class %Net.MQSub extends %Net.MQRecv

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property TopicName as %String;
For the default case, the optional topicName needs to be created beforehand, using WebSphere MQ Explorer or this MQSC command: DEFINE TOPIC(STOCKS) TOPICSTR(NYSE) REPLACE; Topic name
Property methods: TopicNameDisplayToLogical(), TopicNameGet(), TopicNameIsValid(), TopicNameLogicalToDisplay(), TopicNameLogicalToOdbc(), TopicNameNormalize(), TopicNameSet()
property TopicString as %String;
Topic String
Property methods: TopicStringDisplayToLogical(), TopicStringGet(), TopicStringIsValid(), TopicStringLogicalToDisplay(), TopicStringLogicalToOdbc(), TopicStringNormalize(), TopicStringSet()

Methods (Including Private)

method %Connect() as %Boolean
%Connect creates a connection for a Subscription.  A connection is required before messages from the subscription can be received. 

User must first set the standard MQSeries initialization arguments

QName: Host Queue Name (Optional). Note if QName is not provided, the Subscription must be a Managed Subscription.

QMgr: Host Queue Manager name. Passing "" connects to the default queue manager. (Optional)

Channel: Host Channel name (Optional)

Transport: Transport type (TCP, LU62, NETBIOS, SPX) (Optional)

Connection: Connection spec, e.g., "127.0.0.1(1401)" (Optional)

TName: topic name (Required)

SName: subscription name. (Required)

durable: Set durable to 1 if the subscription is to be a durable subscription. (Optional)

See IBM MQ documentation on establishing defaults, and MQ authentication.

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)