Configuring the JMS-configuration directory

The JMS-configuration directory will contain the files that come into the server on a JMS queue that is hosted by a WebSphere MQ queue manager. To create the JMS bindings file, you use the JMSAdmin application. However, before you run this application, you must customize its configuration file to your JMS environment. configure the JMS

Note:
The WebSphere MQ documentation provides a full description on how to create a JMS bindings file. This section provides an overview of that process.

To configure the JMS-configuration directory, take the following steps:

  1. Create a JMS-configuration directory, somewhere on the machine on which Business Integration Connect resides.
  2. Open the JMSAdmin application's configuration file, JMSAdmin.config, for edit. You must customize this file to provide the JMSAdmin application with information about your JMS configuration. This file resides in the following directory:
    WebSphereMQ_Root\java\bin
    

    where WebSphereMQ_Root is the product directory of WebSphere MQ.

  3. Comment out the following lines by inserting a pound character (#) as the first character of the line:
    INITIAL_CONTEXT_FACTORY=com.sun.jndi.ldap.LdapCtxFactory
    PROVIDER_URL=ldap://polaris/o=ibm,c=us
    
  4. Remove the comment from the following lines by deleting the initial pound character (#) as the first character of the line:
    #INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
    #PROVIDER_URL=file://C:/JNDI-Directory
    
  5. Change the path for the PROVIDER_URL variable to the JMS-configuration directory. This is the directory you created in step 1 above.
    Note:
    This directory must exist and your user account must have write permission to this folder.
  6. Save the JMSAdmin.config file.

Suppose you create your JMS-configuration directory as follows:

C:/filesender/config

For this JMS-configuration directory, Figure 29 shows the modified lines of the JMSAdmin.config file.

Figure 29. Sample lines of the JMSAdmin.config file

#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

Copyright IBM Corp. 2003, 2004