TIBCO eFTL™
|
Message constants. More...
Static Public Attributes | |
static readonly String | FIELD_NAME_DESTINATION = "_dest" |
Message constants.
Defines specific constants that can be used with eFTL messages.
|
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.