<msgheader> and <msgproperties> documents

Description

The global variables @@msgheader and @@msgproperties are set with XML <msgheader> and <msgproperties> documents that contain the header and properties of the returned message. This section specifies the format of those documents.

The general format of a <msgheader> and <msgproperties> document for properties named PROPERTY_1, PROPERTY_2, and so on has the form described by the DTD templates in the following syntax section.

Syntax

<!DOCTYPE msgheader [
<!ELEMENT msgheader EMPTY>
<!ATTLIST property_1 CDATA>
<!ATTLIST property_2 CDATA>
etc.
<!DOCTYPE msgproperties [
<!ELEMENT msgproperties EMPTY>
<!ATTLIST property_1 CDATA>
<!ATTLIST property_2 CDATA>

Examples

These examples show <msgheader> or <msgproperties> documents for two select statements:

select msgsend('Sending message with properties',
               'my_jms_provider?queue=queue.sample',
                message property 'color=red, shape=square')
select msgrecv('my_jms_provider?queue=queue.sample')
select rtrim (@@msgproperties)
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<msgproperties
    RTMS_MSGBODY_FORMAT='&apos;string&apos;'
    ASE_RTMS_CHARSET='1'
    ASE_RTMS_VERSION='&apos;1.0&apos;'
    ASE_VERSION='&apos;12.5.0.0&apos;'
    shape='&apos;square&apos;'
    color='&apos;red&apos;' >
</msgproperties> 
select rtrim (@@msgheader)
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<msgheader
    type='&apos;null&apos;' 
    timestamp='1080092021000'
    replyto='&apos;queue.sample&apos;'
    redelivered='false' 
    priority='4' 
    messageid='&apos;ID:E4JMS-SERVER.73018656B39:1&apos;' 
    ttl='0'
    destination='&apos;queue.sample&apos;' 
    mode='2' 
    correlation='&apos;null&apos;' 
    encoding='&apos;null&apos;' >
</msgheader>

Usage