CPlusOOP
SiteMap
Corba Fundamentals
Corba Programming
Java Programming
«Prev
Corba Java Programming
Java Mapping
Interfaces References Inheritance
Primitive Data Types
Constants Type Definitions
Mapping Method Signatures
Mapping Methods inout
Using Holder Objects
Mapping IDL Interface
Java Mapping Clients
Corba Programming Model
Skeleton Stub Java Classes
Java Operations Interface
Inheritance Based Skeleton
Delegation Based Implementation
Writing Basic Server
IDL Interface Inheritance
Writing Basic Client
Generated Stubs Structure
IDL Constructed Types
Java Produced Mapping IDL Structs
Mapping user Defined IDL Exceptions
Mapping IDL Enums
IDL Exceptions mapped Class Hierarchy
Java Mapping user Defined Idl Exceptions
Java Created via Mapping IDL Unions
IDL To Java Mappings Conclusion
Simple Mapped Operations
All elements defined in a module are the same package
MyIdl.idl: module MyMod{
The interface definition results in a class for the interface containing all the elements defined in the IDL interface. The Java interface extends from the common object reference interface org.omg.CORBA.Object.
MyInterface.java:
Each operation maps to a single method in the Java interface generated for the IDL interface. The method name and operation name are the same.
public interface MyInterface extends
The return type of the operation maps to the return type of the method following the rules for primitive type mapping.
public interface MyInterface extends
The in parameters of the operation map, in order, to parameters of the same names in the Java method signature.
The parameter types follow the mapping rules for primitive types.
MyIdl.idl;
The type object in IDL is an object reference, and so maps to the object reference base type org.omg.CORBA.Object. The type MyInterface in IDL refers to the IDL interface, so parameters and return values map to the Java interface generated for the IDL interface. The Java interface derives from org.omg.CORBA.Object.