Broker 10.15 | webMethods Broker Documentation | webMethods Broker Messaging Programmer's Guide | Coding Messaging Client Applications | A Basic JMS Sender-Receiver Client | Sender-Receiver Application Components | JNDI Properties File
 
JNDI Properties File
The client uses the JNDI configuration information contained in the properties file specified in the client's CLASSPATH. The JMS administrative tool accesses this configuration information (see Administrative Setup Commands). Using a JNDI properties file has the advantage of allowing different JNDI providers to be used without having to modify the client code.
The following example shows a properties file for the sender-receiver client:
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://anteater.north.webmethods.com/ou=jmsdept,
ou=pd,o=wm
java.naming.security.principal=cn=Manager,ou=jmsdept,ou=pd,o=wm
java.naming.security.credentials=JMSatWEBM