09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with Messaging Gateway<br />

Unregistering a Queue: Example<br />

begin<br />

dbms_mwgadm.unregister_foreign_queue(‘destq’, ‘mqlink’);<br />

end;<br />

Monitoring the Status of a Registered Non-<strong>Oracle</strong> Queue<br />

You can use the MGW_FOREIGN_QUEUES view to check which non-<strong>Oracle</strong> queues<br />

are registered.<br />

Checking Which Queues Are Registered: Example<br />

SQL> select name, link_name, provider_queue from MGW_FOREIGN_QUEUES;<br />

NAME LINK_NAME PROVIDER_QUEUE<br />

------------------------------------<br />

DESTQ MQLINK my_mq_queue<br />

AQ Queues<br />

You do not need to register AQ queues. When AQ queues are referenced,<br />

Messaging Gateway accesses them directly.<br />

Configuring Propagation Jobs<br />

Propagating messages from one queue to another queue requires a propagation job.<br />

A propagation job consists of a propagation subscriber and a propagation schedule,<br />

hereafter called a subscriber and a schedule. The subscriber specifies the source and<br />

destination queues, while the schedule specifies when the propagation job is<br />

processed. A subscriber without an associated schedule is not processed. For a<br />

schedule to be associated with a subscriber, it must have the same propagation<br />

source and propagation destination.<br />

A Messaging Gateway subscriber does not necessarily correspond to a subscriber in<br />

a non-<strong>Oracle</strong> messaging system, unless that system has such a notion. Note that a<br />

Messaging Gateway subscriber for an AQ queue is not the same thing as an AQ<br />

subscriber on that queue. However, creating a Messaging Gateway subscriber<br />

results in the creation of a corresponding AQ subscriber.<br />

See Also: <strong>Oracle</strong>9i Supplied PL/SQL Packages and Types Reference,<br />

DBMS_MGWADM, for information on adding subscribers<br />

Creating a Messaging Gateway Subscriber<br />

A Messaging Gateway subscriber consists of the following information:<br />

18-20 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!