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.
- Log in as WebSphere administrator. See the WebSphere
documentation.
- Run the startup script by entering the following command from the
bin directory of your WebSphere installation:
startserver.sh myServer
- Start WebSphere server and wait for it to start.
- 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.
- Start WebSphere server and WebSphere Administrative Console.
- In the left pane click Resources >
Resource Adapters.
- 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.
- The new resource adapter is now listed on the right. Click it to
display its properties.
- 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
- 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.
- 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
方法
- Start WebSphere server and WebSphere Administrative Console.
- In the Administrative Console, click Applications
> Install New Application on the left.
- 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 |
- Run the stop script by entering the following command from the
bin directory of your WebSphere installation:
stopserver.sh myserver
関連項目