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.

Using HTTP to Access the AQ XML Servlet<br />

'welcome', -- email user password<br />

'acme.com', -- email user domain<br />

'aqdb1@acme.com', -- complete email address<br />

'aqdb1', -- name of destination database<br />

'http://aq-sun:8000/aqserv/servlet/AQTestServlet', -- URL to access<br />

the destination database servlet<br />

'welcome', -- password of ORACLE_SMTP_AGENT<br />

'ldaphost', -- LDAP host for lookup client certificates<br />

'389', -- LDAP port for LDAP lookup<br />

'cn=aqdb1,cn=oraclecontext,cn=acme,cn=com', -- base DN of LDAP lookup<br />

NULL, NULL -- anonymous bind<br />

);<br />

dbms_output.put_line('register DB status: ' || status);<br />

end;<br />

5. Make sure the operation returns status 0.<br />

After the setup is complete, an AQ agent can send e-mail messages to the database<br />

e-mail address to perform AQ operations. The AQ operations should be constructed<br />

according to IDAP, signed using the <strong>Oracle</strong> e-mail S/MIME toolkit, and sent as a<br />

binary attachment with the name including IDAP_MESSAGE.<br />

Using HTTP to Access the AQ XML Servlet<br />

The procedures for an AQ client to make a request to the AQ servlet using HTTP<br />

and for the AQ servlet to process the request are as follows:<br />

AQ Client Request to the AQ Servlet Using HTTP<br />

1. The client opens an HTTP(S) connection to the server.<br />

For example,<br />

https://aq.us.oracle.com:8000/aqserv/servlet/AQTestServlet<br />

This opens a connection to port 8000 on aq.us.oracle.com.<br />

2. The client logs in to the server by either:<br />

HTTP basic authentication (with or without SSL)<br />

SSL certificate-based client authentication<br />

<br />

3. The client constructs the XML message representing the Send, Publish, Receive<br />

or Register request.<br />

Example:<br />

<br />

17-58 <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!