Previous |
Next |
You can configure message notifications that alert applications or users when a message of interest is enqueued.
The example in this topic illustrates how you can use message notifications to enable two applications to communicate with each other. In this example, the applications communicate in the following way:
The first application determines various parameters that must be set in the second application and the values for these parameters.
The first application enqueues messages that contain the following attributes:
parameter:
Specifies the parameter to set in the second application
value:
Specifies the parameter value
Message notification alerts the second application that there are new messages in the queue.
The second application dequeues the messages and sets the parameters to the values in the messages.
For simplicity, this example does not create the two applications. Instead, it illustrates how to configure a message notification and how message notification can be used to dequeue messages of interest automatically when they are enqueued.
Figure: Sample Messaging Environment That Uses Message Notification provides an overview of the messaging environment created in this example.
Sample Messaging Environment That Uses Message Notification
Note: You can also configure message notification in an environment that sends messages between databases. See "Tutorial: Sending Messages Between Oracle Databases" for an example of an environment that sends messages between databases.
To configure a message notification:
Oracle Streams Advanced Queuing User's Guide for detailed information about message notification features