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.

INIT.ORA Parameter File Considerations<br />

AQ_TM_PROCESSES Parameter<br />

A parameter called AQ_TM_PROCESSES should be specified in the init.ora<br />

parameter file if you want to perform time monitoring on queue messages. Use this<br />

for messages that have delay and expiration properties specified. This parameter<br />

should be set to at least 1. It can be set in a range from 0 to 10. Setting it to any<br />

other number will result in an error. If this parameter is set to 1, one queue monitor<br />

process (QMN) will be created as a background process. If the parameter is not<br />

specified, or is set to 0, the queue monitor process is not created.<br />

Table 2–9 lists parameter information.<br />

Table 2–9 AQ_TM_PROCESSES Parameter<br />

Parameter Options<br />

Parameter Name aq_tm_processes<br />

Parameter Type integer<br />

Parameter Class Dynamic<br />

Allowable Values 0 to 10<br />

Syntax aq_tm_processes = <br />

Name of process ora_qmn_<br />

Example aq_tm_processes = 1<br />

JOB_QUEUE_PROCESSES Parameter<br />

Propagation is handled by job queue (SNP) processes. The number of job queue<br />

processes started in an instance is controlled by the init.ora parameter JOB_<br />

QUEUE_PROCESSES. The default value of this parameter is 0. For message<br />

propagation to take place, this parameter must be set to at least 2. The database<br />

administrator can set it to higher values if there are many queues from which the<br />

messages have to be propagated, or if there are many destinations to which the<br />

messages have to be propagated, or if there are other jobs in the job queue.<br />

See Also: <strong>Oracle</strong>9i SQL Reference for more information on JOB_<br />

QUEUE_PROCESSES.<br />

The Java <strong>Advanced</strong> <strong>Queuing</strong> API supports both the administrative and operational<br />

features of <strong>Advanced</strong> <strong>Queuing</strong>. In developing Java programs for messaging<br />

applications, you will use JDBC to open a connection to the database and then use<br />

2-10 <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!