CORBA - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

CORBA

Description:

Technique: Hui Chen, Devanand Jamisetti, Kang Sun, Zhijun Lu. Methodology: Derrel Blain, A. Chiluka. CMMI: Senhua Yu, Keshav. The Technique. Why CORBA ... – PowerPoint PPT presentation

Number of Views:112
Avg rating:3.0/5.0
Slides: 16
Provided by: Mathc9
Category:
Tags: corba | blain

less

Transcript and Presenter's Notes

Title: CORBA


1
CORBA Common Object Request Broker Architecture
2
The CORBA Group
  • Technique Hui Chen, Devanand Jamisetti, Kang
    Sun, Zhijun Lu
  • Methodology Derrel Blain, A. Chiluka
  • CMMI Senhua Yu, Keshav

3
The Technique
4
Topic I Technical Overview
  • Why CORBA
  • The Problem
  • The Solution (What is CORBA)
  • The Architecture Overview
  • The Methodology Overview

5
Topic II The Components
  • OMG IDL
  • ORB, Client Side
  • ORB, Server Side
  • ORB, Object Implementation Side
  • CORBA Interoperability

6
Topic III Language Mappings
  • Language Mappings, Part 1 C
  • Language Mappings, Part 2 Java

7
Topic IV An example
8
Simplest Example for CORBA
  • CORBA group
  • Presented by Kang Sun

9
Programming in CORBA with ORBacus
  • A simple Hello world!
  • Hello.idl
  • interface Hello
  • void hello()
  • IDL Compiler generates
  • Hello.h (is used to create client side code)
  • Hello.cpp
  • Hello_skel.h(is used to create server side
    code)
  • Hello_skel.cpp

10
Implementing the Server (1)
  • Hello_impl.h
  • include ltHello_skel.hgt
  • class Hello_impl public Hello_skel
  • public virtual void hello()

11
Implementing the Server (2)
  • Hello_impl.cpp
  • include ltOB/CORBA.hgt
  • include ltHello_impl.hgt
  • Void Hello_implhello()
  • cout ltlt Hello World! ltlt endl

12
Implementing the Server (3)
  • Server.cpp (server main program)
  • int main(int argc, char argv, char)
  • CORBA_ORB_var orb CORBA_ORB_init(argc, argv)
  • CORBA_BOA_var boa orb -gt BOA_init(argc, argv)
  • Hello_var p new Hello_impl
  • CORBA_String_var s orb -gt object_to_string(p)
  • const char refFile "Hello.ref"
  • ofstream out(refFile)
  • out ltlt s ltlt endl
  • out.close()
  • boa -gt impl_is_ready(CORBA_ImplementationDef_nil
    ())

13
Implementing the Client (1)
  • Client.cpp
  • int main()
  • CORBA_ORB_var orb CORBA_ORB_init(argc, argv)
  • const char refFile Hello.ref
  • ifstream in
  • in.open(refFile)
  • char s1000
  • in gtgt s
  • CORBA_Object_var obj orb -gt string_to_object(s)
  • Hello_var hello Hello_narrow(obj)

14
Implementing the Client (2)
  • cout ltlt Enter h for hello or x for exit\n
  • char c
  • do
  • cout ltlt gt
  • cin gtgt c
  • if(c h)
  • hello -gt hello()
  • while(c ! x)

15
References
  • ORBacus http//industry.java.sun.com/solutions/pr
    oducts/by_product/0,2348,all-6993-99,00.html
  • http//www.mt.luth.se/division/dmk/education/corba
    2/slides/lecture_5.pdf
  • http//www.cs.wustl.edu/schmidt/PDF/corba4.pdf
  • http//www.omg.org
Write a Comment
User Comments (0)
About PowerShow.com