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.

Demos<br />

You can start a maximum of 10 multiple queue monitors at the same time. You start<br />

the queue monitors by setting the dynamic init.ora parameter aq_tm_<br />

processes. The queue monitor wakes up every minute, or whenever there is work<br />

to do, for instance, if a message is marked expired or ready to be processed.<br />

Java Message Service Terminology<br />

Demos<br />

When using the oracle.jms Java package, keep in mind the following:<br />

The JMS equivalent of enqueue is send.<br />

The destination of messages is a queue, without any qualification.<br />

The container of messages is a topic, and each application can publish on or<br />

<br />

subscribe to a given topic.<br />

Topic in JMS maps to a multiconsumer queue in the other AQ interfaces.<br />

The Java package oracle.jms has classes and interfaces to implement <strong>Oracle</strong><br />

<br />

extensions to the public JMS standard.<br />

The following demos can be found in the $ORACLE_HOME/rdbms/demo directory.<br />

Refer to aqxmlreadme.txt and aqjmsreadme.txt in the demo directory for<br />

more information.<br />

Table 1–1 Demos<br />

Demo and Locations Topic<br />

aqjmsdemo01.java Enqueue text messages and dequeue based on<br />

message properties<br />

aqjmsdemo02.java Message Listener demo<br />

aqjmsdemo03.java Message Listener demo<br />

aqjmsdemo04.java <strong>Oracle</strong> Type Payload - Dequeue on payload<br />

content<br />

aqjmsdemo05.java Example of the queue browser<br />

aqjmsdemo06.java Schedule propagation between queues in the<br />

database<br />

aqjmsdmo.sql Set up AQ JMS demos<br />

Introduction to <strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> 1-25

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

Saved successfully!

Ooh no, something went wrong!