TIBCO eFTL™
Static Public Attributes | List of all members
TIBCO.EFTL.MessageConstants Class Reference

Message constants. More...

Static Public Attributes

static readonly String FIELD_NAME_DESTINATION = "_dest"
 

Detailed Description

Message constants.

Defines specific constants that can be used with eFTL messages.

Member Data Documentation

readonly String TIBCO.EFTL.MessageConstants.FIELD_NAME_DESTINATION = "_dest"
static

Message field name identifying the EMS destination of a message.

The destination message field is only required when communicating with EMS.

To publish a message on a specific EMS destination include this message field using IMessage.SetString.

    message.SetString(MessageConstants.FIELD_NAME_DESTINATION, "MyDest");

To subscribe to messages published on a specific EMS destination use a subscription matcher that includes this message field name.

    String matcher = String.Format("{{\"{0}":"{1}"}}", 
        MessageConstants.FIELD_NAME_DESTINATION, "MyDest");
    connection.Subscribe(matcher, "MyDurable", null, new SubscriptionListener());

To distinguish between topics and queues the destination name can be prefixed with either "TOPIC:" or "QUEUE:", for example "TOPIC:MyDest" or "QUEUE:MyDest". A destination name with no prefix is a topic.