This topic describes how to deploy an application developed using the
Interface Mapping Toolkit to WebLogic Application Server.
For details of supported versions of this application server and the
appropriate JDK to use, see your
Readme.
- If you have not set up a WebLogic server domain, set one up using the
WebLogic Domain Configuration Wizard, following the instructions in the wizard.
You can start the wizard from the Start menu.
- Open the startup script for your project in a text editor. This startup
script is StartWebLogic.sh,
and is located in your domain directory of your WebLogic installation.
- Go to the end of the file.
- Above the line that starts the WebLogic server,
/space/bea/weblogic7020/server/bin/startWLS.sh,
add the following lines:
JAVA_HOME=jdk-dir
export JAVA_HOME
MF_HOME=MF_rar_dir
export MF_HOME
CLASSPATH=$JAVA_HOME/lib/tools.jar:
$MF_HOME/j2ee-version/mfconnector.jar:
$MF_HOME/mfcobolpure.jar
export CLASSPATH
Where:
- jdk-dir is the location of the JDK
installation to use for WebLogic. For information on the supported JDK for
WebLogic, see your readme.txt file, which is on
your Micro Focus CD and also in the $COBDIR/docs directory
of your installation.
- MF_rar_dir
is 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.
- j2ee-version is j2ee13 or j2ee14,
depending on which version of J2EE 1.4 your WebLogic Server
uses.
- Save the file.
- You can now run the startup script.
関連項目
- Set up a WebLogic server domain and edit the startup script, if you
have not already done so.
- Change directory to your WebLogic server domain directory.
- You will probably need to login as root user. See the WebLogic
documentation.
- Run the startup script by typing:
startWebLogic.sh
- Start WebLogic.
- Open a browser.
- Enter the URL, http://localhost:7001/console
where 7001 is the default port for the server console.
- Start WebLogic server and the WebLogic Server Console.
- In the left pane of WebLogic Server Console, expand
your-domain >
Deployments > Connectors.
- Click Connectors to display the Resource
Connectors page.
- Click Configure a new Connector Component and
follow the steps on the page. When you are asked to upload the resource adapter
file, upload 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.
You not need to create a connection factory or specify the JNDI name
of the resource adapter, because these are already specified in the deployment
descriptor for the connection factory, weblogic-ra.xml.
- Confirm that the resource adapter has been successfully deployed, by
examining the Deployment Activity table on the page on the right. The resource
adapter should also be listed in the hierarchy on the left.
注意: The resource adapter must be deployed on a machine where either
Enterprise 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 WebLogic server and the WebLogic Server Console.
- Deploy the .ear file as follows:
- In the left pane expand
mydomain >
Deployments > Application.
- Click Configure a new Application on the
right, and follow the
steps on the page.
- Confirm that the application has been successfully deployed, by
examining the Deployment Activity table on the page on the right. The
application should also be listed in the hierarchy on the left
- Launch the WebLogic server console, if it is not already started.
- Navigate to your server in the left-hand pane. This will probably
mean expanding: mydomain >
Servers >
myserver in the left pane.
- Right-click your server.
- Click Start/Stop server and follow the
instructions.
注意: TheWebLogic Server Console will not be available until you restart the
server.
関連項目