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.

Figure 17–3 HTTP <strong>Advanced</strong> <strong>Queuing</strong> Propagation<br />

<strong>Oracle</strong>9i<br />

Server<br />

Source<br />

Database<br />

Job queue<br />

process<br />

AQ Queue<br />

Using HTTP and HTTPS for <strong>Advanced</strong> <strong>Queuing</strong> Propagation<br />

Web<br />

Server<br />

AQ<br />

Servlet<br />

Destination<br />

Database<br />

AQ Queue<br />

<strong>Oracle</strong>9i<br />

Server<br />

Since HTTP propagation is different from Net Services in only the transport, most of<br />

the setup is the same as for Net Services propagation. The additional steps and<br />

differences are outlined in the following section.<br />

Setting Up for HTTP Propagation (and the Differences from Net Services<br />

Propagation)<br />

1. The dblink at the source database must be created differently. The connect<br />

string should specify the protocol as HTTP and specify the host and port of the<br />

Web server running the AQ servlet. The username and password of the dblink<br />

will be used for authentication with the Web server/servlet runner.<br />

2. An AQ servlet that connects to the destination database should be deployed.<br />

3. The source database must be enabled for running Java and XML.<br />

The rest of the steps for propagation remain the same. The administrator must use<br />

dbms_aqadm.schedule_propagation to start propagation. Propagation can be<br />

disabled with the dbms_aqadm.disable_propagation_schedule and re-enabled<br />

using dbms_aqadm.enable_propagation_schedule. The background processes, the<br />

job queue processes propagate the messages to the destination database.The job_<br />

queue_processes parameters must be at least 2 for propagation to take place.<br />

Any application can be easily set up to use AQ HTTP propagation without any<br />

change to the existing code, by following steps 1-3. Similarly an application using<br />

AQ http propagation can easily switch back to Net Services propagation just by<br />

re-creating the dblink with a Net Services connection string, without any other<br />

changes.<br />

Setting Up for AQ propagation over HTTP<br />

1. The source database must be created for running Java and XML.<br />

Internet Access to <strong>Advanced</strong> <strong>Queuing</strong> 17-63

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

Saved successfully!

Ooh no, something went wrong!