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 propagation type (inbound or outbound)<br />

The source queue<br />

The destination queue<br />

An optional selection rule<br />

An optional transformation name<br />

An optional exception queue<br />

Working with Messaging Gateway<br />

Creating a Messaging Gateway Subscriber: Example<br />

begin<br />

dbms_mgwadm.add_subscriber(<br />

subscriber_id => 'sub_aq2mq', -- MGW subscriber name<br />

propagation_type => dbms_mgwadm.outbound_propagation, -- outbound propaga<br />

queue_name => 'mgwuser.srcq', -- AQ queue name (source queue)<br />

destination => 'destq@mqlink'); -- MGW foreign queue with link<br />

--(destination queue)<br />

end;<br />

This example does not specify a subscriber rule for selecting messages when<br />

dequeuing from the AQ queue. Refer to "Using Transformations" on page 18-23 for<br />

an example in which a transformation is specified.<br />

Creating Messaging Gateway Schedules<br />

A Messaging Gateway schedule must be configured for a propagation job to be<br />

processed. The schedule determines when the propagation of messages occurs. In<br />

release 9.2, a schedule is used only for enabling and disabling propagation jobs. The<br />

scheduling parameters are not used in release 9.2.<br />

Creating a Propagation Schedule: Example<br />

begin<br />

dbms_mgwadm.schedule_propagation(<br />

schedule_id => 'sch_aq2mq', -- schedule name<br />

propagation_type => dbms_mgwadm.outbound_propagation, -- outbound propaga<br />

source => 'mgwuser.srcq', -- AQ queue name<br />

destination<br />

end;<br />

=> 'destq@mqlink'); -- MGW foreign queue with link<br />

Messaging Gateway 18-21

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

Saved successfully!

Ooh no, something went wrong!