BEA Logo BEA WebLogic Enterprise Release 5.0

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WLE Doc Home   |   CORBA Programming & Related Topics   |   Previous   |   Next   |   Contents   |   Index

Creating CORBA Client Applications

Creating CORBA Client Applications describes how to create CORBA C++, CORBA Java, and ActiveX client applications. This topic introduces important product concepts, provides step-by-step instructions for creating client applications, and includes code examples to illustrate the development process.

 

Client Application Development Concepts

Overview of Client Applications

OMG IDL

   OMG IDL to C++ Mapping

   OMG IDL to Java Mapping

   OMG IDL to COM Mapping

Static and Dynamic Invocation

Client Stubs

Interface Repository

Domains

Environmental Objects

   Bootstrap Object

   Factories and the FactoryFinder Object

   Naming Conventions and WLE Extensions to the FactoryFinder Object

   SecurityCurrent Object

   TransactionCurrent Object

   InterfaceRepository Object

Concepts for ActiveX Client Applications

   What is ActiveX?

   Views and Bindings

   Naming Conventions for ActiveX Views

 

Creating CORBA Client Applications

Summary of the Development Process for CORBA C++ Client Applications

Summary of the Development Process for CORBA Java Client Applications

Step 1: Obtaining the OMG IDL File

Step 2: Selecting the Invocation Type

Step 3: Compiling the OMG IDL File

Step 4: Writing the CORBA Client Application

   Initializing the ORB

   Establishing Communication with the WLE Domain

   Resolving Initial References to the FactoryFinder Object

   Using the FactoryFinder Object to Get a Factory

   Using a Factory to Get a CORBA Object

Step 5: Building the CORBA Client Application

Server Applications Acting as Client Applications

Using Java2 Applets

 

Creating ActiveX Client Applications

Summary of the Development Process for ActiveX Client Applications

The BEA Application Builder

Step 1: Loading the Automation Environmental Objects into the Interface Repository

Step 2: Loading the CORBA Interfaces into the Interface Repository

Step 3: Starting the Interface Repository Server Application

Step 4: Creating ActiveX Bindings for the CORBA Interfaces

Step 5: Loading the Type Library for the ActiveX Bindings

Step 6: Writing the ActiveX Client Application

   Including Declarations for the Automation Environmental Objects, Factories, and ActiveX Views of CORBA Objects

   Establishing Communication with the WLE Domain

   Obtaining References to the FactoryFinder Object

   Using a Factory to Get an ActiveX View

   Invoking Operations on the ActiveX View

Step 7: Deploying the ActiveX Client Application

 

Using Security

Overview of WLE Security

Summary of the Development Process for Security

Step 1: Using the Bootstrap Object to Obtain the SecurityCurrent Object

Step 2: Getting the PrincipalAuthenticator Object from the SecurityCurrent Object

Step 3: Obtaining the Authentication Level

Step 4: Logging on to the WLE Domain with Proper Authentication

Step 5: Logging off the WLE Domain

 

Using Transactions

Overview of WLE Transactions

Summary of the Development Process for Transactions

Step 1: Using the Bootstrap Object to Obtain the TransactionCurrent Object

Step 2: Using the TransactionCurrent Methods

 

Using the Dynamic Invocation Interface

When to Use DII

DII Concepts

   Request Objects

   Options for Sending Requests

   Options for Receiving the Results of Requests

Summary of the Development Process for DII

Step 1: Loading the CORBA Interfaces into the Interface Repository

Step 2: Obtaining the Object Reference for the CORBA Object

Step 3: Creating a Request Object

   Using the CORBA::Object::_request Member Function

   Using the CORBA::Object::create_request Member Function

      Setting Arguments for the Request Object

      Setting Input and Output Arguments with the CORBA::NamedValue Member Function

      Example of Using CORBA::Object::create_request Member Function

Step 4: Sending a DII Request and Retrieving the Results

   Synchronous Requests

   Deferred Synchronous Requests

   Oneway Requests

   Multiple Requests

Step 5: Deleting the Request

Step 6: Using the Interface Repository with DII

 

Handling Exceptions

CORBA Exception Handling Concepts

CORBA System Exceptions

CORBA C++ Client Applications

   Handling System Exceptions

   User Exceptions

CORBA Java Client Applications

   System Exceptions

   User Exceptions

ActiveX Client Applications

 

Index