Sun Java System Application Server Enterprise Edition 8 2004Q4 Beta Administration Guide |
Chapter 18
Configuring the Object Request BrokerThis chapter describes how to configure the Object Request Broker (ORB) and IIOP listeners. It has the following sections:
About the Object Request BrokerCORBA
The Application Server supports a standard set of protocols and formats that ensure interoperability. Among these protocols are those defined by CORBA.
The CORBA (Common Object Request Broker Architecture) model is based on clients requesting services from distributed objects or servers through a well-defined interface by issuing requests to the objects in the form of remote method requests. A remote method request carries information about the operation that needs to be performed including the object name (called an object reference) of the service provider and parameters, if any, for the invoked method. CORBA automatically handles network programming tasks such as object registration, object location, object activation, request de-multiplexing, error-handling, marshalling, and operation dispatching.
What is the ORB?
The Object Request Broker (ORB) is the central component of CORBA. The ORB provides the required infrastructure to identify and locate objects, handle connection management, deliver data, and request communication.
A CORBA object never talks directly with another. Instead, the object makes requests through a remote stub to the ORB running on the local machine. The local ORB then passes the request to an ORB on the other machine using the Internet Inter-Orb Protocol (IIOP for short). The remote ORB then locates the appropriate object, processes the request, and returns the results.
IIOP can be used as a Remote Method Invocation (RMI) protocol by applications or objects using RMI-IIOP. Remote clients of enterprise beans (EJB modules) communicate with the Application Server via RMI-IIOP.
IIOP Listeners
An IIOP listener is a listen socket that accepts incoming connections from the remote clients of EJB components and from other CORBA-based clients. Multiple IIOP listeners can be configured for the Application Server. For each listener, specify a port number, a network address, and optionally, security attributes. For more information, see "Creating an IIOP Listener".
Admin Console Tasks for the ORBConfiguring the ORB
- In the tree component, expand the Configurations node.
- Select the instance to configure:
- Select the ORB node.
- Choose the thread pool the ORB uses from the Thread Pool ID drop-down list.
The ORB uses thread pools to respond to requests from remote clients of EJB modules and other clients that communicate via RMI-IIOP. For more information, see "Thread Pools in the Application Server" and "Creating Thread Pools".
- In the Max Message Fragment Size field, set the maximum fragment size for IIOP messages.
Messages larger than this size are fragmented.
- In the Total Connections field, set the maximum number of incoming connections for all IIOP listeners.
- Select the Required checkbox if IIOP client authentication is required.
- Click Save to save the changes, or Load Defaults to load the default values.
- Restart the server.
Admin Console Tasks for IIOP ListenersCreating an IIOP Listener
- In the tree component, expand the Configurations node.
- Select the instance to configure:
- Expand the ORB node.
- Select IIOP Listeners.
- Click New.
- Enter a name to identify the listener in the Name field.
- Enter the network address of the listener in the Network Address field.
This can be an IP address or a DNS resolvable host name.
- In the Listener Port field, enter the port number upon which the listener is to listen.
- Check the Enabled box in the Listener field to enable the listener.
- In the Additional Properties area, provide values for properties required by your application.
- To create a listener that is not secure, click OK.
In the Security section of this page, it is possible to configure the listener to use SSL, TLS, or both SSL and TLS security.
To set up a secure listener, do the following:
- Check the Enabled box in the Security field.
- To force clients to authenticate themselves to the server when using this listener, check the Enabled box in the Client Authentication field.
- Enter the name of an existing server keypair and certificate in the Certificate NickName field.
- In the SSL3/TLS section:
- Click OK.
The listener is now listed in the Current Listeners table on the IIOP Listeners page.
Equivalent
asadmin
command:create-iiop-listener
Editing an IIOP Listener
- In the tree component, expand the Configurations node.
- Select the instance to configure:
- Expand the ORB node.
- Select the IIOP Listeners node.
- Select the listener to be modified in the Current Listeners table.
- Modify the listener's settings. See "Creating an IIOP Listener" for descriptions of the fields that are modifiable.
Deleting an IIOP Listener
Equivalent
asadmin
command:delete-iiop-listener