Installing, Starting, and Stopping OC4J

OC4J is provided with JDeveloper, and it runs embedded for debugging and testing your applications. This topic describes how to install it to run as a standalone OC4J instance to illustrate registering the EJB web service providers.

This topic describes:

Installing OC4J

You first need to install OC4J.

To install OC4J:

  1. From the Command Prompt, navigate to <JDeveloper_home>/j2ee/home .
  2. Type start java -jar oc4j.jar -install
  3. When prompted, enter an admin password.

Starting OC4J

Once you have installed OC4J, you can start it by running this command and leave it running in the background.

To start OC4J:

  1. From the Command Prompt, navigate to:
    <jdev_install> /j2ee/home
    where <jdev_install> is the location of JDeveloper.
  2. Type start java -jar oc4j.jar

You can check that the SOAP server is running by entering this URL in a browser, http://<hostname> :8888/soap/servlet/soaprouter, where <hostname> is the IP address. If you have installed and started OC4J correctly, you will see the following message:

SOAP Server

Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me.

Stopping OC4J

To stop OC4J, follow the instructions below.

To stop OC4J:

  1. From the Command Prompt, navigate to:
    <JDev_install> /j2ee/home
  2. Type:
    java -jar admin.jar ormi://<hostname> admin <admin_password> -shutdown

 

Copyright © 1997, 2004, Oracle. All rights reserved.