TIBCO Adapter SDK C++ Reference
MPublisher Members
MPublisher | Legend
Members
Methods
Method Description
disableJmsMessageId  
downCast Performs safe cast operation for MPublisher objects.

See MComponent::downCast() for a detailed explanation and example.

downCast Performs safe cast operation for MPublisher objects.

See MComponent::downCast() for a detailed explanation and example.

getClassNames Enumerate over the list of keys to the objects.
getDeliveryMode Delivery mode being used. Possible values are

DELIVERY_RELIABLE

DELIVERY_PERSIST

DELIVERY_DIST_Q (RV Specific)

DELIVERY_RELIABLE_EXT (JMS specific)

getDescription Return a MString describing the publisher’s current state.
getDestinationName Return the destination name of this publisher.
getMessageFormat Return the message format this publisher uses to send messages on the transport.
getMRvSession Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPublisher::getSession().

getNumMessagesPublished Get the number of messages this publisher has published so far.
getProtocol Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPubisher::getDeliveryMode().

getReplyDestinationName Return the reply destination name associated with this publisher.
getReplySubject Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPublisher::getReplyDestinationName().

getSession Return the session associated with this publisher.
getSessionName Return the session name in which this publisher was created.
getSubjectName Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPublisher::getDestinationName().

MPublisher The constructor allows you to specify the session in which to create the MPublisher.
MPublisher Constructor for creating a publisher instance that uses either an MRvSession or MJmsSession.

preRegisterListener Preregister an anticipated listener.
send Publish a message. The data is in MData format.

The following sublcasses of MData can be used for publishing:

MInstance

MUnion

MSequence

MAssocList

This method throws MException under these circumstances:

send Publish a message. This form sends a TIBCO Rendezvous message.
send Publish a message.
sendWithReply Publish a message to TIBCO Rendezvous. The data is in MTree format. The application itself is responsible for converting data to MTree format. When the reply is sent, the SDK informs the listener specified by pEventListener.

This method works only with asynchronous sessions because a timer is involved.

The SDK serializes the MTree so its format is suitable for network transmissions.

This method creates an inbox and its associated subscriber and links it to the caller in the last parameter. It supersedes any reply subject set by the user.

If you want to set a reply subject and broadcast replies to other subscriber, use the methods MPublisher::setReplySubject(), MPublisher::setReplySubject(), and MPublisher::send() instead.

sendWithReply Publish a message. This method works with both synchronous and asynchronous sessions.

The data is in MTree format. The application itself is responsible for converting data to MTree format. When the reply is sent, the SDK informs the listener specified by pEventListener.

The SDK serializes the MTree so its format is suitable for network transmissions.

sendWithReply Publish a message to TIBCO Rendezvous. This form works only with asynchronous sessions because a timer is involved.

The data is in MTree format. The application itself is responsible for converting data to MTree format. When the reply is sent, the SDK informs the listener specified by pEventListener.

The SDK serializes the MTree so its format is suitable for network transmissions.

sendWithSyncReply  
sendWithSyncReply Allow publishing with a synchronous reply.
setDestinationName Set the destination name to which this MPublisher sends messages.

One should avoid dynamic subjects on publishing endpoint as it goes against the "publishing service" architecture where the service has a bounded fixed subject publishing endpoint.

setJmsCorrelationId  
setJmsPriority  
setReplyDestinationName Set the reply destination for this publisher.

setReplySubject Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPublisher::setReplyDestinationName().

setSubjectName Deprecated in TIBCO Adapter SDK 5.0.0

 

Use MPublisher::setDestinationName().

unRegisterListener Unregister a specific certified listener (durable subscriber in JMS scenario) and frees associated storage in the sending session’s ledger (JMS server in JMS scenario).
validateMessage Deprecated in TIBCO SDK Adapter 5.0.0.
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.