Command-Line Start

WebLogic server is a Java application and, like all Java applications, it can be started by passing the class definition as a parameter to the Java command. However, as shown in this section, the number of options required for even a basic start is lengthy enough that you will want to create a shell script containing the options you desire .

The basic format is, of course,

 java -classpath $CLASSPATH weblogic.Server 

where the $CLASSPATH is as appropriate for your machine. Note, however, that it must contain the weblogic.jar and weblogic_sp.jar archive files. To get any work done, you will also need to specify (at a minimum) the domain and server name . A complete list of possible command-line WebLogic server options follows . Note that the application options can also be passed at start time.

 -Dweblogic.Domain=<domain> 

Specify the name of the WebLogic domain that the server it to join. Note that this is "domain" in the WebLogic context, not ( necessarily ) the Internet context.

 -Dbea.home=<path> 

The <path> parameter is an absolute path to the BEA home directory on your system.

 -Dweblogic.ListenAddress=<host> 

This is the IP address or fully qualified domain name that the server monitors for incoming client requests .

 -Dweblogic.management.password=<password> 

If you want to automate the server start process to the extent that no human has to do any typing before the server will start, you can use this option. Be advised that storing your passwords in unencrypted form, as this option requires, is a security hole.

 -Dweblogic.pkpassword=<pkpassword> 

When starting servers that utilize the Secure Socket Layer protocol, you may need to pass in a password for the server to use to decrypt the file containing the private key.

 -Dweblogic.Name=<servername> 

A server name must be provided.

 -Dweblogic.RootDirectory=<path> 

The <path> parameter is an absolute path to the root directory of WebLogic server on your system. In the case of WebLogic server 6.1, this defaults to the wlserver6.1 directory under BEA home.

 -Dweblogic.security.SSL.HostnameVerifier=<class> 

Use this option to pass in the location of a class that performs the host-name verification.

 -Dweblogic.security.SSL.ignoreHostNameVerification=true 

Sometimes, in order to get any work done, you have to live with some insecurity. The option above tells WebLogic to permit connections even when the host name of the client is of dubious authenticity.

 -Dweblogic.security.SSL.sessionCache.size=<bytes> 

Sets an upper limit on the size of the SSL session cache.

 -Dweblogic.security.SSL.sessionCache.ttl=<seconds> 

Sets an upper limit on the number of seconds a session cache can remain on the server.



BEA WebLogic Server Administration Kit
BEA WebLogic Server Administration Kit (Prentice Hall PTR Advanced Web Development)
ISBN: 0130463868
EAN: 2147483647
Year: 2002
Pages: 134
Authors: Scott Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net