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.

The following command shuts down the Messaging Gateway agent:<br />

SQL> exec dbms_mgwadm.shutdown<br />

Working with Messaging Gateway<br />

When Messaging Gateway completes the shutdown procedure, the AGENT_STATUS<br />

column indicates NOT_STARTED.<br />

By monitoring the MGW_GATEWAY view and the log file, you can determine the<br />

success of the shutdown procedure. If problems occur during shutdown or<br />

unexpected events occur that leave the Messaging Gateway administration in an<br />

inconsistent state, you can reset status information, as follows:<br />

SQL> exec dbms_mgwadm.cleanup_gateway(dbms_gmwadm.CLEAN_STARTUP_STATE)<br />

The Messaging Gateway agent process must not be running when this command is<br />

executed.<br />

Configuring Messaging Gateway Links<br />

You can use SQL scripts to configure Messaging Gateway, as illustrated in the<br />

following script examples. Full examples are found in the samples directory of the<br />

Messaging Gateway installation.<br />

Creating a Messaging Gateway Link<br />

A Messaging Gateway link is a set of connection information to a non-<strong>Oracle</strong><br />

messaging system. It is used whenever a connection is needed for either messaging<br />

or administrative work.<br />

You can set the following information for a link to an MQSeries queue manager: the<br />

queue manager name, channel, host, port, username, and password for an<br />

MQSeries client connection. Log queues for inbound or outbound propagation must<br />

also be set for use by the Messaging Gateway agent in guaranteeing exactly-once<br />

delivery. The two queues can refer to the same physical queue, but better<br />

performance is achieved if they refer to different physical queues.<br />

An options argument, a set of {name, value} pairs, both of which are strings,<br />

represents arguments specific to a non-<strong>Oracle</strong> messaging system interface. For<br />

MQSeries-recognized property names, these include:<br />

‘MQ_ccsid’ for the corresponding MQEnvironment.CCSID property<br />

‘MQ_SendExit’ for MQEnvironment.SEND_EXIT<br />

‘MQ_ReceiveExit’ for MQEnvironment.RECEIVE_EXIT<br />

Messaging Gateway 18-15

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

Saved successfully!

Ooh no, something went wrong!