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.

General Features of JMS<br />

Using JNDI to Look Up ConnectionFactory Objects<br />

ConnectionFactory objects can be registered in an LDAP server by a JMS<br />

administrator.<br />

The following setup is required to enable JNDI lookup in JMS:<br />

1. When the <strong>Oracle</strong>9i server is installed, the database must be registered with the<br />

LDAP server. This can be done using the Database Configuration Assistant<br />

(DBCA).<br />

AQ entries in the LDAP server have the following structure:<br />

<br />

<br />

<br />

Connection Factory information is stored under ,<br />

while topics and queues are stored under <br />

2. The GLOBAL_TOPIC_ENABLED system parameter for the database must be set<br />

to TRUE. This ensures that all queues and topics created in AQ are<br />

automatically registered with the LDAP server.<br />

This parameter can be set by using<br />

ALTER SYSTEM SET GLOBAL_TOPICS_ENABLED = TRUE<br />

3. After the database has been setup to use an LDAP server, the JMS administrator<br />

can register QueueConnectionFactory and TopicConnectionFactory objects in<br />

LDAP by using the AQjmsFactory.registerConnectionFactory()<br />

method.<br />

The registration can be done in one of the following ways:<br />

Connect directly to the LDAP server - The user must have the GLOBAL_AQ_<br />

<br />

USER_ROLE to register connection factories in LDAP<br />

12-6 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong><br />

(administrative context)<br />

(root of oracle RDBMS schema)<br />

(database)<br />

<br />

(Connection Factories)<br />

(Queues / Topics)<br />

(Other db objects)

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

Saved successfully!

Ooh no, something went wrong!