Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / %SYS namespace / %Net.MQSub
Private  Storage   

%Net.MQSub


class %Net.MQSub extends
%Net.MQRecv

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 1


Summary


Properties
ApplIdentityData Channel CharSetId Connection
Context CorrelationId MQCloseQID MQCommitID
MQConnectID MQDeleteID MQDisconnID MQErrLogID
MQGetID MQGetLastErrID MQGetStreamID MQMsgDescID
MQMsgDescIID MQMsgDescSetID MQOpenQID MQOpenTopicID
MQPutID MQPutStreamID MQSetChannelID MQSetUserPassID
MQSubscribeID MessageId Password PutApplType
QMBehavior QMgr QName ReplyQMgrName
ReplyQName SSLCipherSpec SelectCorrelationId SelectMessageId
Syncpoint TopicName TopicString Transport
Username mDesc mDllid qtype

Methods
%%OIDGet %AddToSaveSet %ApplIdentityData %Backout
%BindExport %BuildObjectGraph %CharSet %ClassIsLatestVersion
%ClassName %Close %Commit %Connect
%ConstructClone %CorId %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %ErrLog %Extends %Get
%GetLastError %GetParameter %GetStream %IncrementCount
%Init %IsA %IsModified %MsgId
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %PutApplType %RemoveFromSaveSet %ReplyQMgrName
%ReplyQName %SerializeObject %SetCharSet %SetModified
%Syncpoint %ValidateObject


Properties


• 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 TopicString as %String;
Topic String
• property qtype as %Integer [ InitialExpression = 3 ];
MQ type

Methods


• 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.