Using CORBA Server-to-Server Communication
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This topic includes the following sections:
Notes: The BEA Tuxedo CORBA Java client and BEA Tuxedo CORBA Java client ORB were deprecated in Tuxedo 8.1 and are no longer supported. All BEA Tuxedo CORBA Java client and BEA Tuxedo CORBA Java client ORB text references, associated code samples, should only be used to help implement/run third party Java ORB libraries, and for programmer reference only.
Technical support for third party CORBA Java ORBs should be provided by their respective vendors. BEA Tuxedo does not provide any technical support or documentation for third party CORBA Java ORBs.
CORBA server-to-server communication allows BEA Tuxedo applications to invoke CORBA objects and handle invocations from those CORBA objects (referred to as callback objects). The CORBA objects can be either inside or outside of a BEA Tuxedo domain.
The BEA Tuxedo product offers an implementation of the Internet Inter-ORB Protocol (IIOP) version 1.2, which provides inbound and outbound communication with the CORBA objects. Server-to-server communication provides more efficient use of network resources and provides integration with third-party Object Request Brokers (ORBs). In addition, server-to-server communication is supported with CORBA objects that are implemented using IIOP versions 1.0 and 1.1.
Server-to-server communication allows client applications to act as server applications for requests from other client applications. In addition, server-to-server communication allows BEA Tuxedo server applications to invoke objects on other ORBs.
Note: In earlier versions of the BEA Tuxedo and WebLogic Enterprise products, client applications invoked operations defined in Object Management Group (OMG) Interface Definition Language (IDL) on a CORBA object. The server applications implemented the operations of the CORBA object. The CORBA objects in the server application used BEA Tuxedo TP Framework and environmental objects to implement state management, security, and transactions. These CORBA objects are referred to as BEA Tuxedo objects. Server applications could act as client applications for other server applications; however, client applications could not act as server applications for other client applications.
The server-to-server communication functionality is available through a callback object. A callback object has two purposes:
Callback objects do not use the TP Framework and are not subject to BEA Tuxedo administration. You should use them only when transactional behavior, security, reliability, and scalability are not important.
Callback objects are implemented in joint client/server applications. A joint client/server application consists of the following:
Note: Release 8.0 of the CORBA environment in the BEA Tuxedo CORBA product continues to include the BEA client environmental objects provided in earlier releases of BEA WebLogic Enterprise for use with the BEA Tuxedo 8.0 CORBA clients. BEA Tuxedo 8.0 clients should use these environmental objects to resolve initial references to bootstrapping, security, and transaction objects. In this release, support has been added for using the OMG Interoperable Naming Service (INS) to resolve initial references to bootstrapping, security, and transaction objects. For information on INS, see Chapter 4, "CORBA Bootstrapping Programming Reference" in the CORBA Programming Reference.
Figure 1-1 shows the structure of a joint client/server application.
Figure 1-1 Structure of a Joint Client/Server Application
C++ joint client/server applications are supported.
Joint client/server applications use IIOP to communicate with the BEA Tuxedo server applications. IIOP can work in the following ways, depending on the version of the IIOP protocol you are using:
Joint client/server applications are always connected to the same IIOP Server Handler (ISH) in the BEA Tuxedo domain. That ISH reuses the same connection to send requests to and receive requests from the joint client/server application.
Joint client/server applications use the register_callback_port method of the Bootstrap object to register the listening port of the joint client/server application in the ISH. Invocations from server applications on the callback object in the joint client/server application are routed through the ISH connected to the joint client/server application. This ISH uses a second outbound connection to send requests to and receive replies from the connected joint client/server application. The outbound connection is paired with the incoming connection. This differs from bidirectional IIOP, which uses only one connection.
Note: Depending on the type of remote object and the desired outbound IIOP configuration, you may have to perform additional programming tasks.
Table 1-1 lists the requirements for each type of object and outbound IIOP configuration.
For a more detailed description of bidirectional, dual-paired connnection, and asymmetric IIOP, see the CORBA Programming Reference.
Callback objects are assigned policies that control how long an object reference is valid and how an object ID is assigned to the object. Object policies are defined when the reference to the callback object is created. In addition, they can be defined in the Callbacks Wrapper object, which simplifies the development of joint client/server applications.
The following object policies are supported for callback objects:
When creating a callback object with an object policy of transient, the object reference is valid only until the joint client/server application is terminated or until the stop_all_objects
method is called.
When creating a callback object with an object policy of persistent, the object reference is valid even after the termination of the joint client/server application. If the joint client/server application terminates, restarts, and activates a servant for the same object ID, the servant accepts requests made on that object reference.
Note: If you are creating a native joint client/server application (that is, a joint client/server application that is located in the same BEA Tuxedo domain as the server applications that invoke it), you cannot use the Persistent/System ID or Persistent/User ID object policies.
![]() ![]() |
![]() |
![]() |