09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Propagation Features<br />

Specify HTTP as the protocol.<br />

Specify the username and password that will be used for authentication<br />

<br />

with the Web server/servlet runner as the host and port of the Web server<br />

running the AQ servlet.<br />

For this example, the connect string of the database link should be as follows:<br />

(DESCRIPTION=(ADDRESS=(PROTOCOL=http)(HOST=webdest.oracle.com)(PORT=8081))<br />

If SSL is used, then specify HTTPS as the protocol in the connect string.<br />

Create the database link as follows:<br />

create public database link dba connect to john identified by welcome<br />

using<br />

'(DESCRIPTION=(ADDRESS=(PROTOCOL=http)(HOST=webdest.oracle.com)(PORT=8081))'<br />

;<br />

If SSL is used, then specify HTTPS as the protocol in the connect string.<br />

Create the database link as follows:<br />

create public database link dba connect to john identified by welcome<br />

using<br />

'(DESCRIPTION=(ADDRESS=(PROTOCOL=http)(HOST=webdest.oracle.com)(PORT=8081))'<br />

;<br />

Here john is the AQ HTTP agent used to access the AQ (propagation) servlet.<br />

Welcome is the password used to authenticate with the Web server.<br />

3. Make sure that the AQ HTTP agent, John, is authorized to perform AQ<br />

operations. Do the following at the destination database.<br />

a. Register the AQ agent.<br />

dbms_aqadm.create_aq_agent(agent_name => 'John', enable_http => true);<br />

b. Map the AQ agent to a database user.<br />

dbms_aqadm.enable_db_access(agent_name =>'John', db_username =>'CBADM')'<br />

4. Set up the remote subscription to OE.OE_bookedorders_que.<br />

execute dbms_aqadm.add_subscriber('OE.OE_bookedorders_que',<br />

aq$_agent(null, 'WS.WS_bookedorders_que', null));<br />

5. Start propagation by calling dbms_aqdm.schedule_propagation at the<br />

source database.<br />

8-120 <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!