To communicate with WebSphere MQ, you must define the following four parameters in JNDI:
Specifies the name of the Java class that builds connections. This name depends on the JNDI provider you use. You can use the following types of context factories:
Example: com.sun.jndi.fscontext.RefFSContextFactory
Example: com.sun.jndi.ldap.LdapCtxFactory
Example: com.ibm.websphere.naming.WsnInitialContextFactory
Specifies the URL of your JNDI provider, which provides the location to look up the WebSphere MQ connectivity information. Use the following formats for these common JNDI providers:
file:[drive:]/pathname
ldap://hostname/contextname
iiop://hostname[:port] /[?TargetContext=ctx]
Example: file:/var/mqm/fsjndi
Defines a name that you assign to identify your MQ queue connection. The connection factory is an arbitrary name that you create to correspond to the MQ Queue Manager, host, and port.
Example: MY_QUEUE_CF
Defines a name you assign to identify the MQ queue. The JNDI destination is an arbitrary name that you create to correspond to the MQ queue.
Example: MY_QUEUE
| Copyright © 2010 CA. All rights reserved. | Email CA about this topic |