Oracle8i Java Developer's Guide Release 3 (8.1.7) Part Number A83728-01 |
Library | Service | Contents | Index

## Configuring JServer

When you install JServer as part of your normal Oracle8i installation, you will encounter configuration requirements for JServer within the Oracle8i Database Configuration Assistant and the Net8 Assistant. However, if you install using `initjvm.sql`, you must configure either by bringing up certain configuration tools or manually editing the initialization files.

The main configuration for Java classes within Oracle8i includes configuring Java memory requirements, the type of database processes, and the underlying connection protocol to the server.

- Java memory requirements--You must have at least 20 MB of `JAVA_POOL_SIZE` and 50 MB of `SHARED_POOL_SIZE`. If you installed JServer through the Oracle installer, these parameters are configured correctly. If you installed using the SQL script `initjvm.sql`, see "Java Memory Usage" for information on configuring these parameters within the database initialization files.

- Database processes--You must decide whether to use dedicated server processes or MTS processes for your database server.

- Connection protocol--The presentation layer within the database defines the type of connection your client is using to access the database. In most networking protocols, the presentation layer is responsible for making sure data is represented in a format the application and session layers can accommodate. Within the database, a presentation is a service protocol that accepts incoming network requests and activates routines in the database kernel layer or in the Aurora JVM to process the requests. Currently, the two basic presentation types are Net8 and GIOP. The GIOP presentation is used for IIOP connections for EJB and CORBA applications. Most database connections default to the Net8 connection type.

  Presentation protocol | Description
  --- | ---
  GIOP | Accepts IIOP or IIOP over SSL requests for CORBA or EJB applications. See the Oracle8i Enterprise JavaBeans Developer's Guide and Reference or the Oracle8i CORBA Developer's Guide and Reference for configuration information.
  Net8 | Processes incoming Net8 requests for database SQL services from Oracle tools (such as SQL*Plus) and customer-written applications (using Forms, Pro*C, or the OCI). See "Configuring Multi-Threaded Server" in Chapter 9 of the Net8 Administrator's Guide for configuration information.

You will require a different configuration for your database type and connection configuration, depending on the type of Java application, as listed below:

Java API | Database type | Connection configuration
--- | --- | ---
Java stored procedures | Java stored procedures can run either in dedicated server mode or multi-threaded server (MTS) mode. If you are primarily developing Java stored procedures, you can run them in the dedicated server configuration. | Java clients or PL/SQL clients that trigger a Java stored procedure connect over a Net8 connection. See the Net8 Administrator's Guide for information on configuring a Net8 connection.
Enterprise Java Beans (EJB) or CORBA | EJB and CORBA applications run only in the MTS configuration. See Net8 Administrator's Guide for information on configuring MTS. | EJB and CORBA clients use the CORBA Internet Inter-Orb Protocol (IIOP). See the Oracle8i Enterprise JavaBeans Developer's Guide and Reference or the Oracle8i CORBA Developer's Guide and Reference books for information on IIOP configuration.
Both Java stored procedures and EJB or CORBA applications | If you are combining both EJB and CORBA applications with Java stored procedures in a single application, you can configure both application types as follows: Configure your database to support EJB and CORBA applications in an MTS configuration Configure your database to support stored procedures in a dedicated server configuration. | You must configure both a Net8 and an IIOP connection.

### Java Stored Procedure Configuration

To configure the database to run Java stored procedures, you must decide whether you want the database to run in dedicated server mode or MTS mode.

- Dedicated server mode--You must configure the database and clients, as described in the Oracle8i Java Stored Procedures Developer's Guide.

- MTS mode--You must configure the server for MTS mode with the MTS_DISPATCHERS parameter, as described in Chapter 9 of the Net8 Administrator's Guide.

Java, SQL, or PL/SQL clients, which execute Java stored procedures on the server, connect to the database over a Net8 connection. For a full description of how to configure the Net8 connection, see the Net8 Administrator's Guide.

### Enterprise JavaBeans and CORBA Configuration

Clients access EJB and CORBA applications in the database over an Inter-Orb Protocol (IIOP) connection. IIOP is an implementation of GIOP over TCP/IP. To support an IIOP connection, you must configure the database in MTS mode with the General Inter-Orb Protocol (GIOP) presentation.

Oracle8i also supports the use of authentication data such as certificates and private keys required for use by SSL in combination with both types of GIOP protocols-- regular GIOP and session-based GIOP.

For a complete description of how to configure MTS, see the Net8 Administrator's Guide. For a full description of how to configure the GIOP presentation, see the Oralce8i Enterprise JavaBeans Developer's Guide and Reference or the Oracle8i CORBA Developer's Guide and Reference books..

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index