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.

Deploying the AQ XML Servlet<br />

2. Create an e-mail account for the destination database, that is, the database<br />

against which AQ operations are to be performed using the AQ servlet.<br />

See Also: <strong>Oracle</strong> eMail Server 5.5 Administration Guide for how to<br />

create an e-mail account on the e-mail server.<br />

3. Set up an e-mail rule for the destination database e-mail account so that it can<br />

handle AQ XML client requests by sending them to the AQ servlet.<br />

The following information is required:<br />

The e-mail account of the destination database, for example, 'aqdb1';<br />

<br />

The password of the e-mail account, for example, 'welcome'<br />

The domain in which this e-mail account resides, for example,<br />

<br />

'acme.com'<br />

The complete e-mail address of the destination e-mail address, for example,<br />

<br />

'aqdb1@acme.com'<br />

The name of the destination database, for example, 'aqdb1'<br />

The URL of the destination database servlet, for example,<br />

<br />

http://aq-sun.us.oracle.com:8000/aqserv/servlet/AQTestServlet<br />

The user name and password to access the destination database servlet<br />

<br />

(user name is ORACLE_SMTP_AGENT; password is established in "Web<br />

Server Setup" on page 17-56).<br />

The host and port for LDAP lookup. For example, host=ldaphost,<br />

<br />

port=389.<br />

The base distinguished name (DN) for LDAP lookup, that is, the DN of the<br />

<br />

destination database in the LDAP server, for example, 'cn=aqdb1,<br />

cn=oraclecontext,cn=acme,cn=com'.<br />

The login DN and password for LDAP lookup, for example NULL for<br />

<br />

anonymous binds.<br />

4. Register the rule using dbms_aqst:<br />

declare<br />

status binary_integer;<br />

begin<br />

status := dbms_aqst.register_db(<br />

'aqdb1', -- email user account for aqdb1<br />

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

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

Saved successfully!

Ooh no, something went wrong!