To deploy to WebSphere

This topic describes how to deploy an application developed using the Interface Mapping Toolkit to WebSphere Application Server.

For details of supported versions of this application server and the appropriate JDK to use, see your Readme.

To start WebSphere server:

  1. Log in as WebSphere administrator. See the WebSphere documentation.
  2. Run the startup script by entering the following command from the bin directory of your WebSphere installation:
    startserver.sh myServer

To start WebSphere administrative console

  1. Start WebSphere server and wait for it to start.
  2. Launch the WebSphere Administrative Console either from the Start menu or by opening a browser and entering the URL, http://localhost:9090/admin where 9090 is the default port for the administrative console.

To deploy a resource adapter to WebSphere

  1. Start WebSphere server and WebSphere Administrative Console.
  2. In the left pane click Resources > Resource Adapters.
  3. Click Install RAR on the page on the right, and follow the instructions on the screen.

    When you are asked for the resource adapter file, specify the required mfcobol*.rar file. For the location of the resource adapters see the section Resource Adapters in the chapter Deploying Interfaces in your Configuration and Administration Guide for Micro Focus Server.

  4. The new resource adapter is now listed on the right. Click it to display its properties.
  5. Add a connection factory for the resource adapter. You might need to scroll to Additional Properties at the end and then click J2C Connection Factories. Then click New and follow the instructions on the screen to specify:
    • CCIMFCobol_v1.0 as the reference name for the connection factory
    • eis/MFCobol_v1.0 as the JNDI name for the connection factory
  6. Confirm that the new resource adapter is now listed on the right.

注意: The resource adapter must be deployed on a machine where either Micro Focus Server or your COBOL development system is installed.

To deploy an EJB to WebSphere

  1. If you don't have an .ear file containing your EJB, package the EJB into an .ear file now. You will have an .ear if you generated a client and EJB together, and it will be in myProject/repos/myService.deploy

    方法

  2. Start WebSphere server and WebSphere Administrative Console.
  3. In the Administrative Console, click Applications > Install New Application on the left.
  4. Follow the instructions on the screen. Most of the information will default to information in the generated deployment descriptors and you do not need to change it. You will however need to specify the following:
    When asked for: Do this:
    Path to ear file Specify the path to your .ear file
    Deploy EJBs Check this
    JNDI name of EJB Specify any name you like, but it must match the JNDI name that other components of your application use when they refer your EJB
    Map EJB ref to an enterprise bean Specify the same JNDI name that you specified above

To stop WebSphere server

関連項目