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.

Messaging Gateway Questions<br />

How do I tell if messages are being propagated or moved to the<br />

exception queue?<br />

The PROPAGATED_MSGS field of the MGW_SUBSCRIBERS view indicates how many<br />

messages have been successfully propagated. The EXCEPTIONQ_MSGS field<br />

indicates how many messages have been moved to the exception queue. Both these<br />

fields are reset to zero when the MGW agent is started.<br />

When are messages moved to the propagation job exception queue?<br />

If a MGW subscriber has been configured with an exception queue, the MGW agent<br />

will move messages to that exception queue the first time the MGW agent<br />

encounters a propagation failure due to a message conversion failure. A message<br />

conversion failure is indicated by oracle.mgw.common.MessageException in<br />

the MGW log file.<br />

How do I recover from a message conversion failure? How do I continue<br />

processing when oracle.mgw.common.MessageException occurs?<br />

If a message conversion failure occurs,<br />

oracle.mgw.common.MessageException is be logged to the MGW log file. If<br />

this occurs, the MGW agent probably cannot propagate the message causing the<br />

failure, and the propagation job will eventually be disabled.<br />

If the log file indicates that the failure is due to an exception being raised in a<br />

transformation function used for an AQ dequeue (outbound propagation) or AQ<br />

enqueue (inbound propagation), verify that the transformation function is correct.<br />

The MGW subscriber can be configured with a propagation exception queue. If a<br />

message conversion failure occurs, the MGW agent moves that message to the<br />

exception queue and then continues processing the propagation job.<br />

How do I recover a failed propagation job?<br />

If a propagation job runs into failures during processing, the MGW agent retries up<br />

to 16 times in an exponential backoff scheme before disabling the job.<br />

To recover from a failed propagation job, do the following:<br />

1. Look at the MGW log file to determine the nature of the failure and correct the<br />

problem. For a message conversion failure, the MGW subscriber may need to be<br />

configured with an exception queue.<br />

2. Call dbms_mgwadm.reset_subscriber to reset the subscriber state. The<br />

MGW agent will attempt to recover the failed job and retry the propagation.<br />

6-12 <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!