![]() |
![]() |
|
|
Deploying Applications
Deployment is the process of taking previously developed servlets and/or EJBs and installing them into a specific operational environment. In this case, the operational environment is your WebLogic system. This section describes how to deploy your own applications using the BEA WebLogic Java Adapter for Mainframe (JAM) software.
This section discusses the following topics:
Deploying Servlets
Please refer to the BEA WebLogic Server documentation for detailed instructions on deploying servlets.
The following steps provide an example of deploying a servlet by modifying the weblogics.properties file.
Perform the following steps to deploy a servlet:
weblogic.httpd.register.urlname=mypackage.MyServlet
This registration line causes the WebLogic Server to use the servlet class "mypackage.MyServlet" to serve all HTTP requests for a page at the URL name (on your host).
*JC_REMOTE_SERVICES
widgetQuote RDOM="myMainframe"
RNAME="WIDQUOTE"
There are other servlet deployment options, including hot-deploying a servlet into a running WebLogic server. Please refer to the WebLogic Server documentation for more details.
Deploying Enterprise Java Beans
Please refer to the BEA WebLogic Server documentation for detailed instructions on deploying EJBs. The WebLogic samples provide examples of build scripts for UNIZ and NT platforms.
Perform the following steps to deploy an EJB:
java weblogic.ejbc input.jar output.jar
weblogic.ejb.deploy=c:\my\path\output.jar
*JC_REMOTE_SERVICES
widgetQuote RDOM="myMainframe"
RNAME="WIDQUOTE"
EJBs may also be placed into jar files before being deployed, and may be hot-deployed into a running WebLogic Server. Please refer to the Weblogic Server documentation for more details.
If you wish to deploy more than one EJB in the same jar file, the deployment XML files must be combined. Refer to the WebLogic Server documentation.
Give special attention to classpath setting if you are also deploying a servlet that accesses this EJB or the same DataView subclass. You may need to place all common classes on your WEBLOGICCLASSPATH rather than on your servlet classpath.
|
Copyright © 2000 BEA Systems, Inc. All rights reserved.
|