IRISLIB database
MQSub Class Reference
Inheritance diagram for MQSub:
Collaboration diagram for MQSub:

Public Attributes

 TopicName
 For the default case, the optional topicName needs to be created. More...
 
 TopicString
 Topic String. More...
 
- Public Attributes inherited from MQRecv
 SelectCorrelationId
 Message Selection Options: Correlation Id. More...
 
 SelectMessageId
 Message Selection Options: Message Id. More...
 
- Public Attributes inherited from abstractMQ
 Channel
 Channel Definition Options: Channel Name. More...
 
 CharSetId
 Message Descriptor Options: Character Set Identifier. More...
 
 Connection
 Channel Definition Options: Connection name. More...
 
 Context
 Flag indicating use of message context. More...
 
 Password
 Channel Definition Options: Password (if any) More...
 
 PutApplType
 Message Descriptor Options: Put application type. More...
 
 QMBehavior
 Flag indicating Queue Manager behavior. More...
 
 QMgr
 Queue Manager name. More...
 
 QName
 Queue name. More...
 
 SSLCipherSpec
 Channel Definition Options: SSL Cipher Spec. More...
 
 Syncpoint
 Flag indicating use of SYNCPOINT. More...
 
 Transport
 Channel Definition Options: Transport type. More...
 
 Username
 Channel Definition Options: Username (if any) More...
 

Private Member Functions

_.Library.Boolean Connect ()
 Connect creates a connection for a Subscription. More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from abstractMQ
 ApplIdentityData = None
 Message Descriptor Options: Application Identity. More...
 
 CorrelationId = None
 Message Descriptor Options: Correlation Id. More...
 
 MessageId = None
 Message Descriptor Options: Message Id. More...
 
 ReplyQMgrName = None
 Message Descriptor Options: Reply Q Manager name. More...
 
 ReplyQName = None
 Message Descriptor Options: Reply Q name. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Member Function Documentation

◆ Connect()

_.Library.Boolean Connect ( )
private

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.

Reimplemented from abstractMQ.

Member Data Documentation

◆ TopicName

TopicName

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  

◆ TopicString

TopicString

Topic String.