Chapter 3: Real Time Messaging Services  Publishing and consuming messages from a topic

Chapter 3: Real Time Messaging Services

Sending and receiving messages from a queue

Using the msgsend and msgrecv functions, Transact-SQL applications can send messages to – or read messages from – a JMS queue. A message body, or payload, can be constructed with the application, or it can contain character or binary data from relational tables. You can construct the values of message properties from relational data or from the Adaptive Server application, and you can specify message properties when you send the message.

The Adaptive Server application can process the messages read from the JMS queue or it can be inserted into relational tables. When executing the read operation, you can also specify a message selector to filter specific messages. Message properties in read messages can be individually processed by the Adaptive Server application.





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

View this book as PDF