Setting up your environment

This section describes how to prepare your environment to work with the tutorial. In what follows, sample_folder refers to the folder in which the samples reside.

  1. Create the queues The tutorial requires that six queues be defined with your JMS service provider. Check your JMS provider documentation before defining these queues. Define the following queues (or make them available via JNDI lookup):
  2. Create and start a WebSphere MQ queue manager with a running channel initiator and listener.
  3. Define the queues required by the WebSphere MQ adapter and Port Connector for the WMQI broker configuration as follows:
  4. Configure the adapter Using Connector Configurator, open sample_folder\JMSConnector.cfg. For further information on using Connector Configurator, see Appendix B, Connector Configurator; for more on connector-specific properties, see Connector-specific properties.
    Set the following standard properties:

    Set the following connector-specific properties:

  5. Configure the Port Connector Using Connector Configurator, set the following standard properties:
  6. Support business objects In order to use business objects, adapters must first support them. Using Connector Configurator, click the Supported Business Objects tab for the JMS adapter, add the business objects shown in Table 25 and set the Message Set ID to a unique value for each supported business object.

    Table 25. Supported sample business objects for JMS adapter
    Business Object Name Message Set ID
    Sample_JMS_MO_Config 1
    Sample_JMS_MO_DataHandler 2
    Sample_JMS_Contact 3

    Using Connector Configurator, open the Port connector definition PortConnector.cfg provided in the sample_folder, and add the supported business object and Message Set ID shown in Table 26.

    Table 26. Supported sample business objects for Port connector
    Business Object Name Message Set ID
    Sample_JMS_Contact 1

  7. Create or update connector start scripts


    Windows:

    1. Open the properties of the shortcut for the adapter for JMS.
    2. As the last argument in the target, add -c followed by the <full path and filename for the JMSConnector.cfg file> For example:
      -cProduct_Dir\connectors\JMS\samples\JMSConnector.cfg
       

    UNIX:

    1. Open the file: Product_Dir/bin/connector_manager_JMS.
    2. Set the value of the AGENTCONFIG_FILE property to -c followed by the <full path and filename for the JMSConnector.cfg file> For example:
      AGENTCONFIG_FILE=-cProduct_Dir/connectors/JMS/samples/JMSConnector.cfg
       

Copyright IBM Corp. 1997, 2003