How to create a JMS MapMessage with field names that are illegal tuple field names

How to create a JMS MapMessage with field names that are illegal tuple field names

book

Article ID: KB0078127

calendar_today

Updated On:

Products Versions
TIBCO Streaming -

Description

How can I create a JMS MapMessage where the field names are numbers? I understand a field name cannot be a number in a StreamBase schema so I cannot take advantage of the default configuration for converting tuples to map messages.

Issue/Introduction

EventFlow language guidance

Resolution

Field names may be escaped using #"name" syntax and the default JMS Map Message Converter deals with this correctly. 

In a Map operator add fields named: #"1", #"2", and #"3" and emit the message using the JMS Publisher output adapter. The sent MapMessage has the field names 1, 2, and 3. For more info, see the Help page: 
  TIBCO Streaming > StreamBase References > StreamBase Expression Language Features
  "Escaped Identifier Syntax"

Escaped tuple field-names can be used in all EventFlow expressions and any adapter and operator configuration where a field name is expected.