Chapter 2: Overview of Real Time Messaging Services  Publishing and consuming messages from a topic

Chapter 2: Overview of Real Time Messaging Services

Sending and receiving messages from a queue

Using the built-in functions msgsend and msgrecv, Transact-SQL applications can send messages to a JMS queue or read messages from a JMS queue.

A message body, or payload, can be constructed using application logic, or it can contain character or binary data directly from relational tables.

You can construct the values of message properties from relational data or from application logic, and specify message properties when you send the message.

Messages read from the JMS queue can be processed by the application logic, or directly inserted into relational tables.To filter out only messages of interest when executing the read operation, specify a message selector.

Message properties in read messages can be individually processed by the application logic. For more information about message properties, see msgsend.





Copyright © 2004. Sybase Inc. All rights reserved. Publishing and consuming messages from a topic

View this book as PDF