Syntax  Usage

Chapter 6: Common Topics in Real Time Messaging

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>




Copyright © 2004. Sybase Inc. All rights reserved. Usage

View this book as PDF