BEA Logo BEA WebLogic Enterprise Release 5.1

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

 

   WebLogic Enterprise Doc Home   |   CORBA Programming   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Using the idltojava Compiler

 

To build Java applications that can access CORBA objects, you need the BEA idltojava compiler, a tool that converts IDL files to Java stub and skeleton files. The idltojava compiler is included with the BEA WebLogic Enterprise software.

This topic explains what enhancements are included on the BEA idltojava compiler, the relationship of Java IDL to CORBA, and how you can use Java IDL to create Java applications that interoperate with CORBA objects. The section "Using idltojava Command" describes how to run the idltojava compiler and explains all the command line options and flags. Several code examples are included, along with information about the CORBA IDL to Java mappings that the idltojava tool implements, and references to API reference pages that relate to Java IDL and the idltojava compiler.

 

Overview of CORBA Java Programming

Where Do I Get the BEA idltojava Compiler?

How Does the BEA idltojava Compiler Differ From the Sun Microsystems, Inc. Version?

What Is IDL?

What Is Java IDL?

About CORBA and Java IDL

Accessing CORBA Objects from Java Applications

Defining and Implementing CORBA Objects

CORBA Object Interfaces

Java Language-based Implementation

Client Implementation

The FactoryFinder

What's Next?

 

Using the idltojava Command

Syntax of the idltojava Command

idltojava Command Description

Running idltojava on Client or Joint Client/Server IDL Files

Running m3idltojava on Server Side IDL Files

idltojava Command Options

idltojava Command Flags

Using #pragma in IDL Files

 

Java IDL Examples

Getting Started with a Simple Example of IDL

Callback Objects IDL Example

Persistent State and User Exceptions IDL Example

Implementation Inheritance

 

Java IDL Programming Concepts

Exceptions

Differences Between CORBA and Java Exceptions

System Exceptions

System Exception Structure

Minor Codes

Completion Status

User Exceptions

Minor Code Meanings

Initializations

Creating an ORB Object

Creating an ORB for an Application

Creating an ORB for an Applet

Arguments to ORB.init()

System Properties

Obtaining Initial Object References

Stringified Object References

Getting References From the ORB

The FactoryFinder Interface

 

IDL-to-Java Mappings Used By the idltojava Compiler

 

The Java IDL API