09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modeling Queue Entities<br />

between different processing stages of the business process. By specifying delay<br />

interval and expiration time for a message, a window of execution can be provided<br />

for each of the applications.<br />

Figure 7–8 Implementing Workflows using AQ<br />

Application A<br />

producer<br />

Enqueue<br />

(Message 1)<br />

Dequeue<br />

(Message 1)<br />

Dequeue<br />

(Message 2)<br />

Application B<br />

consumer & producer<br />

From a workflow perspective, the passing of messages is a business asset above and<br />

beyond the value of the payload data. Hence, AQ supports the optional retention of<br />

messages for analysis of historical patterns and prediction of future trends.<br />

AQ Implementation of Publish/Subscribe<br />

Application C<br />

consumer & producer<br />

Note: The contents of the messages 1, 2 and 3 can be the same or<br />

different. Even when they are different, messages may contain parts<br />

of the of the contents of previous messages.<br />

Figure 7–9 illustrates the use of AQ for implementing a publish/subscribe<br />

messaging scheme between applications. Application A is a publisher application<br />

which is publishing messages to a queue. Applications B, C, D are subscriber<br />

7-12 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong><br />

Enqueue<br />

(Message 3)<br />

Enqueue<br />

(Message 2)<br />

Dequeue<br />

(Message 3)<br />

Application D<br />

consumer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!