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.

Installation Questions<br />

2. Set up user authentication: Configure the Web server to authenticate all the<br />

users that send POST requests to the AQ Servlet. Only authenticated users are<br />

allowed to access the AQ Servlet.<br />

3. Set up user authorization: Register the AQ agent name that will be used to<br />

perform AQ operations using DBMS_AQADM.CREATE_AQ_AGENT. Map the AQ<br />

agent to the database users using DBMS_AQADM.ENABLE_DB_ACCESS.<br />

4. Now clients can write SOAP requests and send them to the AQ Servlet using<br />

HTTP POST.<br />

How do I set up e-mail notifications?<br />

Here are the steps for setting up your database for e-mail notifications:<br />

1. Set the SMTP mail host: Invoke DBMS_AQELM.SET_MAILHOST as an AQ<br />

administrator.<br />

2. Set the SMTP mail port: Invoke DBMS_AQELM.SET_MAILPORT as an AQ<br />

administrator. If not explicit, set defaults to 25.<br />

3. Set the SendFrom address: Invoke DBMS_AQELM.SET_SENDFROM.<br />

4. After setup, you can register for e-mail notifications using the OCI or PL/SQL<br />

API.<br />

How do I perform AQ operations using e-mail?<br />

See Chapter 17 for a full discussion. Currently, these operations are supported by<br />

<strong>Oracle</strong> Email Server 5.5 and higher. In summary, follow the steps for setting up<br />

Internet access for AQ. In addition, do the following:<br />

1. Create an AQ Internet agent to access the servlet using SMTP. This agent’s<br />

digital certificate should be registered in LDAP. The certificate location must be<br />

specified when the agent is registered using the DBMS_AQADM.CREATE_AQ_<br />

AGENT procedure.<br />

2. Set up the Web server: Configure the Web server to receive requests from a user<br />

called ORACLE_SMTP_AGENT. This user will be used to access the AQ Servlet.<br />

Also specify setEmailServerAddr or setEmailServerHost in the<br />

init() method of the AQ Servlet.<br />

3. Set up <strong>Oracle</strong> Email Server:<br />

a. Run $ORACLE_HOME/admin/emailrule.sql to create an AQ schema on<br />

the e-mail server database.<br />

Frequently Asked Questions 6-21

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

Saved successfully!

Ooh no, something went wrong!