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 />

Removing a Messaging Gateway Link<br />

You can remove a Messaging Gateway link to a non-<strong>Oracle</strong> messaging system only<br />

if all registered queues associated with this link have already been removed.<br />

begin<br />

dbms_mgwadm.remove_msgsystem_link(‘mqlink’);<br />

end;<br />

The link can be removed whether or not the Messaging Gateway agent is running.<br />

Monitoring the Status of a Messaging Gateway Link<br />

The MGW_LINKS view can be used to check which links have been configured. It<br />

lists the name and link type (which non-<strong>Oracle</strong> messaging system it applies to). To<br />

check configured link information, non-<strong>Oracle</strong> messaging system-specific views are<br />

available. For MQSeries, the MGW_MQSERIES_LINKS view has columns for most<br />

configurable information.<br />

Checking Link Information: Example<br />

SQL> select * from MGW_LINKS;<br />

LINK_NAME LINK_TYPE LINK_COMMENT<br />

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

MQLINK MQSERIES<br />

SQL> select link_name, queue_manager, channel, hostname from MGW_MQSERIES_LINKS;<br />

LINK_NAME QUEUE_MANAGER CHANNEL HOSTNAME<br />

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

MQLINK my.queue.manager mychannel myhost.mydomain<br />

Registering Non-<strong>Oracle</strong> Messaging System Queues<br />

All non-<strong>Oracle</strong> messaging system queues involved in propagation must be<br />

registered through the Messaging Gateway administration interface. Messaging<br />

Gateway does not create non-<strong>Oracle</strong> queues; it only uses the configured information<br />

to access them.<br />

Registering a Non-<strong>Oracle</strong> Queue<br />

The following information is used to register a non-<strong>Oracle</strong> queue:<br />

The Messaging Gateway link name used to connect to the non-<strong>Oracle</strong><br />

<br />

messaging system<br />

18-18 <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!