|
ok,现在讲如何通过
dcmctl 发布应用。
先看看标准的用法
[ias10g@finproduction home]$ dcmctl help deployapplication
deployApplication
Deploys a J2EE application.
Type
Application
Syntax
deployApplication -f file -a app_name [-co comp_name] [-enableIIOP]
[-rc rootcontext] [-pa parent_name]
where
file is the name of the WAR or EAR file to deploy
app_name is the name of the application specified by the user in
original deployment
comp_name is the name of the OC4J instance to which the application
will be deployed. The default is the home instance.
-enable IIOP enables the Internet Inter-Orb Protocol
-rc rootcontext is the base path used in the URL to access the web
module (for example, http://hostname ort/context root ). Applies to
deployment of WAR files only.
-pa parent_name is the parent application name. The parent application
contains common classes used by child applications.
Description
The J2EE application is deployed to the local application server
instance.
Example
To deploy an application to the home OC4J instance:
dcmctl deployApplication -f app1.ear -a app1
To deploy an application to the OC4J_my_apps instance:
dcmctl deployApplication -f app1.ear -a app1 -co OC4J_myapps
To deploy a WAR file to the home OC4J instance:
dcmctl deployApplication -f app2.war -a app1 -rc /myiAS/myWebapps |
|