JMS 配置目录将包含一些文件,这些文件从由 WebSphere MQ 队列管理器托管的 JMS 队列进入服务器。要创建 JMS 绑定文件,请您使用 JMSAdmin 应用程序。然而,运行该应用程序以前,您必须定制它的配置文件,以符合您的 JMS 环境。
要配置 JMS 配置目录,请采用以下步骤:
WebSphereMQ_Root\java\bin
WebSphereMQ_Root是 WebSphere MQ 的产品目录。
INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory PROVIDER_URL=ldap://polaris/o=ibm,c=us
#INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory #PROVIDER_URL=file://C:/JNDI-Directory
假设您创建如下 JMS 配置目录:
C:/filesender/config
对于 JMS 配置目录,图 29 显示文件 JMSAdmin.config 中被修改的行。
#INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory # # The following line specifies the URL of the service provider's initial # context. It currently refers to an LDAP root center. Examples of a # file system URL and WebSphere's JNDI namespace are also shown, commented # out #PROVIDER_URL=ldap://polaris/o=ibm,c=us PROVIDER_URL=file://C:/filesender/config