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.

Getting a Queue/Topic in LDAP<br />

Figure 13–12 Getting a Queue/Topic in LDAP<br />

User/<br />

Program<br />

JMS Administrative Interface :<br />

Directory Context<br />

LOOKUP<br />

Queue / Topic<br />

Purpose<br />

Get a queue/topic from LDAP.<br />

Example<br />

See Also:<br />

specify<br />

qeueue / topic<br />

name<br />

Table 13–1 for a list of JMS administrative interface basic<br />

<br />

operations<br />

Hashtable env = new Hashtable(5, 0.75f);<br />

DirContext ctx;<br />

topic topic_1;<br />

Getting a Queue/Topic in LDAP<br />

/* the following statements set in hashtable env:<br />

* service provider package<br />

* the URL of the ldap server<br />

* the distinguished name of the database server<br />

* the authentication method (simple)<br />

* the LDAP user name<br />

* the LDAP user password<br />

*/<br />

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");<br />

JMS Administrative Interface: Basic Operations 13-27

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

Saved successfully!

Ooh no, something went wrong!