Chapter 13 Configuring the Object Request Broker
This chapter describes how to configure the Object Request Broker (ORB) and
IIOP listeners. It has the following sections:
About the Object Request Broker
CORBA
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 enterprise beans 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 To create an IIOP listener.
Admin Console Tasks for the ORB
To configure the ORB
-
In the tree component, expand the Configuration node.
-
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 enterprise beans and other clients that communicate via RMI-IIOP. For more information,
see About Thread Pools and To create a thread pool.
-
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 Listeners
To create an IIOP listener
-
In the tree component, expand the Configuration node.
-
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 applications.
-
To create a listener:
-
To create a listener that is not secure, click OK.
-
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 key pair and certificate in the Certificate
NickName field.
-
In the SSL3/TLS section:
-
Check the security protocol(s) to enable on the listener. Check either
SSL3 or TLS, or enable both protocols.
-
Check the cipher suite used by the protocol(s).
To enable
all cipher suites, check All Supported Cipher Suites. You can also enable individual
cipher suites.
-
Click OK.
The listener is now listed in the Current Listeners
table on the IIOP Listeners page.
Equivalent asadmin commands
create-iiop-listener and create-ssl
To edit an IIOP listener
-
In the tree component, expand the Configuration node.
-
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 To create an IIOP listener for descriptions of the fields that are modifiable.
-
If you changed the port number of the listener, restart the server.
To delete an IIOP listener
-
In the tree component, expand the Configuration node.
-
Expand the ORB node.
-
Select the IIOP Listeners node.
-
Check the listener(s) to be deleted in the Current Listeners table.
-
Click Delete.
Equivalent asadmin command
delete-iiop-listener