Configuring the connection factory for WebSphere Liberty servers

Configure a connection factory in your server.xml file for connection to your IMS TM host system.

About this task

For the WebSphere Liberty server, the connection factory is configured in the server.xml file.

Procedure

  1. Open the server.xml file.
  2. Configure a connection factory for connection to your IMS host system by adding a <connectionFactory> entry:
    <connectionFactory jndiName="your_JNDI_name" type="javax.resource.cci.ConnectionFactory">
       <properties.IMS_adapter_id hostName="your_host_name"
          portNumber="xxxx" dataStoreName="data_store_name" />
    </connectionFactory>
    IMS_adapter_id is the ID that is specified in the <resourceAdapter> entry when you installed and deployed the resource adapter.
    The server.xml might look as follows:
    <server description="myLibertyServer">
       <!-- Enable features -->
       <featureManager>
          <feature>jsp-2.2</feature>
          <!-- Added jca-1.6 and jndi-1.0 features required by the IMS 
               TM resource adapter -->
          <feature>jca-1.6</feature>
          <feature>jndi-1.0</feature>
       </featureManager>
       . . .  
       <!-- Added connection factory for the IMS TM resource adapter -->
       <connectionFactory jndiName="myJNDIName"
           type="javax.resource.cci.ConnectionFactory">
           <properties.IMSTMRA hostName="MY.IMS.IBM.COM"
               portNumber="9999" dataStoreName="IMS1" />
       </connectionFactory>
    
       <resourceAdapter id="IMSTMRA" 
         location="C:\IBM\IMS\ico1410\IBM\IMS\ICO14\V1410\JCA15\imsico1410.rar" />
    </server>
  3. Save your changes.

What to do next

You are ready to proceed to test the connection by deploying and testing the provided installation verification program (IVP).