You do not need the administrative Gui to perform start, stop, deploy or undeploy on Weblogic.
To be able to use the command line you have to enable tunneling (no restart required).
In the gui go to "Environment -> Servers -> myserver(admin) -> Protocols -> Enable Tunneling"
On the command line edit bea/weblogic92/server/bin/config/config.xml and add the following to the <server> section (restart required):
<tunneling-enabled>true</tunneling-enabled>
After this you can use the command line tools. For exampel:
java weblogic.Deployer -user weblogic -password weblogic -name mymodule -undeploy
java weblogic.Deployer -user weblogic -password weblogic -name mymodule -deploy -source /home/jboss/ejbca/dist/ejbca.ear
java weblogic.Deployer -user weblogic -password weblogic -name mymodule -stop
java weblogic.Deployer -user weblogic -password weblogic -name mymodule -start
Wednesday, March 12, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
You can add the following after java weblogic.Deployer to access a remote Weblogic server:
-adminurl http://localhost:7001
To get the right environment variables use bea/weblogic92/server/bin/setWLSEnv.sh
Post a Comment