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.

JMS Propagation<br />

((AQjmsDestination)topic).schedulePropagation(jms_session, "dba", null,<br />

new Double(5*60), null, new Double(20));<br />

}catch (JMSException ex)<br />

{System.out.println("Exception: " + ex);}<br />

}<br />

Propagation schedule parameters can also be altered.<br />

/* alter duration to 10 minutes and latency to zero */<br />

public void alter_propagation(TopicSession jms_session)<br />

{<br />

Topic topic;<br />

try<br />

{<br />

/* get a handle to the OE_bookedorders_topic */<br />

topic = ((AQjmsSession)jms_session).getTopic("WS",<br />

"WS_bookedorders_topic");<br />

/* Schedule propagation immediately with duration of 5 minutes and latency<br />

20 sec */<br />

((AQjmsDestination)topic).alterPropagationSchedule(jms_session, "dba",<br />

new Double(10*60), null, new Double(0));<br />

}catch (JMSException ex)<br />

{System.out.println("Exception: " + ex);}<br />

}<br />

Enhanced Propagation Scheduling Capabilities<br />

Detailed information about the schedules can be obtained from the catalog views<br />

defined for propagation. Information about active schedules—such as the name of<br />

the background process handling that schedule, the SID (session, serial number) for<br />

the session handling the propagation and the <strong>Oracle</strong> instance handling a schedule<br />

(relevant if Real Application Clusters are being used)—can be obtained from the<br />

catalog views. The same catalog views also provide information about the previous<br />

successful execution of a schedule (last successful propagation of message) and the<br />

next execution of the schedule.<br />

For each schedule, detailed propagation statistics are maintained:<br />

The total number of messages propagated in a schedule<br />

<br />

Total number of bytes propagated in a schedule<br />

Maximum number of messages propagated in a window<br />

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