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.

Transformation Questions<br />

Messaging Gateway Questions<br />

Why are messages moved to the default AQ exception queue upon<br />

propagation failures for an outbound propagation job?<br />

The MAX_RETRIES parameter of AQ queues controls when AQ moves messages to<br />

an AQ exception queue for a failed dequeue attempt. The default value is NULL,<br />

which resolves to the value 5 in <strong>Oracle</strong> 9i.<br />

If the parameter value is too small, messages in the queues can be moved into AQ<br />

exception queues if the MGW agent keeps running into failures when processing<br />

MGW subscribers. The AQ messages moved to AQ exception queues cause<br />

unrecoverable failures on the associated MGW subscribers. The MAX_RETRIES<br />

parameter for AQ queues that are used as a propagation source should be set to at<br />

least 16, and preferably a much larger value.<br />

How do I use transformations?<br />

An MGW subscriber can be configured with a transformation to use during an AQ<br />

dequeue for outbound propagation or an AQ enqueue for inbound propagation.<br />

Do the following:<br />

1. Create the transformation function.<br />

2. Grant EXECUTE to the MGW agent user or to PUBLIC on the function and the<br />

object types it references.<br />

3. Call dbms_transform.create_transformation to register the<br />

transformation.<br />

4. Call dbms_mgwadm.add_subscriber to create a MGW subscriber using the<br />

transformation, or dbms_mgwadm.alter_subscriber to alter an existing<br />

subscriber.<br />

The value passed in the transformation parameter for these APIs must be the<br />

registered transformation name and not the function name.<br />

What happens if a transformation raises an exception?<br />

If a transformation function raises an exception, a message conversion failure occurs<br />

and will be indicated by an oracle.mgw.common.MessageException in the MGW<br />

log file.<br />

Frequently Asked Questions 6-13

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

Saved successfully!

Ooh no, something went wrong!