ORBit2 Tutorial V1.1 | ||
---|---|---|
<<< Previous | Next >>> |
As exercise we will write a small application for your postoffice. Our company has done a requirement analyzes going to know that customers must be able to send and receive letters. A letter consists of three attributes 'sender', 'recipient' and 'content'. A recipient can connect to postoffice to accompish three tasks:
customer can send a letter
customer can query for incoming letters
customer can fetch its letters (customer must be recipient).
First step of application programming is to design API that fullfills all requirements. We will use CORBA's interface definition language (IDL) to sketch the servers API the client shall interact with later. This IDL file is going to be used later for code generation, which covers complete low level IO for distributed method invocation, so user can focus on higher level functionality of application.
Table 1. postoffice.idl
|
Keywords of IDL differ slightly from those known from Java or C++, please see for further details at OMG for IDL specification.
<<< Previous | Home | Next >>> |
ORBit2 Tutorial V1.1 | Quick Start with Python |