Académique Documents
Professionnel Documents
Culture Documents
2
CORBA Architecture
Object Request Broker
• It is a mechanism for invoking operations on an object in
a different process
• It is Responsible for:
o Object location transparency
• Find the object implementation for the request
o Object activation
• Prepare the object implementation to receive the
request
o Communication
• Communicate the data making up the request
4
Interface Definition Language (1)
C COBOL
++C C
IDL IDL
IDL IDL
COBOL Ada
IDL IDL
ORB ORB
IDL IDL
Ada Small
IDL IDL talk
IDL IDL
Java ++C
More More
6
IDL Compiler
IDL
1. Define objects using
IDL Definitions
2. Run IDL file through
IDL compiler
3. Compiler uses
language mappings IDL
to generate
programming Compiler
language specific
stubs and skeletons
Stubs Skeletons
Servant,POA
• Servant is an object written in a programming language
that implements an IDL interface.
• Primitive:
float, double, long, short (signed, unsigned), char,long
long, boolean, octet
• Complex :
arrays, sequences, structures
• Example:
module Bank {
//body
};
10
IDL Structure (Interfaces)
• An IDL interface is the definition of an object
interface Account {
//attributes
// operations
};
11
IDL Structure (Attributes)
interface Account {
read-write attribute string name;
readonly attribute long accountNumber;
};
• Example
13
IDL Structure (Exceptions)
exception InsufficientFunds {
System.out.println(“exception”);
};
void withdraw(in unsigned long
amount)
raises (InsufficientFunds);
};
• Examples
o Naming service
o Security service
o Persistent object service (POS)
-
Name Service
• construct sub name context under a root naming context.