Generating the JNDI bindings file

You must generate a JNDI bindings file on the server machine, and then transfer it to the \bin subdirectory on the client machine.

  1. On the server machine, create a directory and label it C:\JNDI-Directory. If this directory already exists, delete any bindings files from it.
  2. On the server machine, navigate to the java\bin directory of WebSphere MQ and make the following change in the JMSAdmin config file
    INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.
    RefFSContextFactory PROVIDER_URL=file:/C:/JNDI-Directory
  3. Review the pssetup.bat file or ivtsetup.bat file.
  4. Run the bat file from the command line in java/bin directory. This creates a.bindings file in the C:\JNDI-Directory.
  5. Copy this file to the client machine to the bin directory of the WebSphere MQ Client Installation.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.