Managing Web Sites
The -site option enables you to configure new Web sites, including secure sites, for
use by applications deployed into OC4J. You can also retrieve a list of existing sites;
test existing sites; as and update or remove existing Web sites.
The syntax of the -add option, which configures a new site, is as follows:
java -jar admin.jar ormi://<oc4jHost>:<oc4jOrmiPort> <adminId>
<adminPassword> -site -add [-host <hostName>] -port <port> -display-name <name>
[-virtual-hosts <hostNames>] [-secure [true|false]] [-factory <class>] [-keystore
<path>] [-storepass <password>] [-provider <class>] [-needs-client-auth
[true|false]]
For example, the following command structure configures a new Web site on port
8899 with two virtual hosts:
java -jar admin.jar ormi://localhost:23791 oc4jadmin welcome -site -add -host
www1.acme.com -port 8899 -display-name MyServer -virtual-hosts
MyServer.com,MyServer2.com
Partager