corba & rmi

Upload: puspala-manojkumar

Post on 10-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 CORBA & RMI

    1/95

  • 8/8/2019 CORBA & RMI

    2/95

  • 8/8/2019 CORBA & RMI

    3/95

  • 8/8/2019 CORBA & RMI

    4/95

  • 8/8/2019 CORBA & RMI

    5/95

  • 8/8/2019 CORBA & RMI

    6/95

  • 8/8/2019 CORBA & RMI

    7/95

  • 8/8/2019 CORBA & RMI

    8/95

  • 8/8/2019 CORBA & RMI

    9/95

  • 8/8/2019 CORBA & RMI

    10/95

  • 8/8/2019 CORBA & RMI

    11/95

  • 8/8/2019 CORBA & RMI

    12/95

  • 8/8/2019 CORBA & RMI

    13/95

  • 8/8/2019 CORBA & RMI

    14/95

  • 8/8/2019 CORBA & RMI

    15/95

  • 8/8/2019 CORBA & RMI

    16/95

  • 8/8/2019 CORBA & RMI

    17/95

  • 8/8/2019 CORBA & RMI

    18/95

  • 8/8/2019 CORBA & RMI

    19/95

  • 8/8/2019 CORBA & RMI

    20/95

  • 8/8/2019 CORBA & RMI

    21/95

  • 8/8/2019 CORBA & RMI

    22/95

  • 8/8/2019 CORBA & RMI

    23/95

  • 8/8/2019 CORBA & RMI

    24/95

  • 8/8/2019 CORBA & RMI

    25/95

  • 8/8/2019 CORBA & RMI

    26/95

  • 8/8/2019 CORBA & RMI

    27/95

  • 8/8/2019 CORBA & RMI

    28/95

  • 8/8/2019 CORBA & RMI

    29/95

  • 8/8/2019 CORBA & RMI

    30/95

  • 8/8/2019 CORBA & RMI

    31/95

  • 8/8/2019 CORBA & RMI

    32/95

  • 8/8/2019 CORBA & RMI

    33/95

  • 8/8/2019 CORBA & RMI

    34/95

  • 8/8/2019 CORBA & RMI

    35/95

  • 8/8/2019 CORBA & RMI

    36/95

  • 8/8/2019 CORBA & RMI

    37/95

  • 8/8/2019 CORBA & RMI

    38/95

  • 8/8/2019 CORBA & RMI

    39/95

  • 8/8/2019 CORBA & RMI

    40/95

  • 8/8/2019 CORBA & RMI

    41/95

  • 8/8/2019 CORBA & RMI

    42/95

  • 8/8/2019 CORBA & RMI

    43/95

  • 8/8/2019 CORBA & RMI

    44/95

  • 8/8/2019 CORBA & RMI

    45/95

  • 8/8/2019 CORBA & RMI

    46/95

  • 8/8/2019 CORBA & RMI

    47/95

  • 8/8/2019 CORBA & RMI

    48/95

  • 8/8/2019 CORBA & RMI

    49/95

  • 8/8/2019 CORBA & RMI

    50/95

  • 8/8/2019 CORBA & RMI

    51/95

  • 8/8/2019 CORBA & RMI

    52/95

  • 8/8/2019 CORBA & RMI

    53/95

  • 8/8/2019 CORBA & RMI

    54/95

  • 8/8/2019 CORBA & RMI

    55/95

  • 8/8/2019 CORBA & RMI

    56/95

  • 8/8/2019 CORBA & RMI

    57/95

  • 8/8/2019 CORBA & RMI

    58/95

  • 8/8/2019 CORBA & RMI

    59/95

  • 8/8/2019 CORBA & RMI

    60/95

  • 8/8/2019 CORBA & RMI

    61/95

  • 8/8/2019 CORBA & RMI

    62/95

  • 8/8/2019 CORBA & RMI

    63/95

  • 8/8/2019 CORBA & RMI

    64/95

  • 8/8/2019 CORBA & RMI

    65/95

  • 8/8/2019 CORBA & RMI

    66/95

  • 8/8/2019 CORBA & RMI

    67/95

  • 8/8/2019 CORBA & RMI

    68/95

  • 8/8/2019 CORBA & RMI

    69/95

  • 8/8/2019 CORBA & RMI

    70/95

  • 8/8/2019 CORBA & RMI

    71/95

  • 8/8/2019 CORBA & RMI

    72/95

  • 8/8/2019 CORBA & RMI

    73/95

  • 8/8/2019 CORBA & RMI

    74/95

  • 8/8/2019 CORBA & RMI

    75/95

  • 8/8/2019 CORBA & RMI

    76/95

  • 8/8/2019 CORBA & RMI

    77/95

  • 8/8/2019 CORBA & RMI

    78/95

  • 8/8/2019 CORBA & RMI

    79/95

  • 8/8/2019 CORBA & RMI

    80/95

  • 8/8/2019 CORBA & RMI

    81/95

  • 8/8/2019 CORBA & RMI

    82/95

    Distributed Systems

    CORBA Overview

  • 8/8/2019 CORBA & RMI

    83/95

    Copyright Karsten Schulz Terp-Nielsen

    Object Model - remote object references

    Persistent object references are implementedby usage of the Implementation Repository

    IOR Host:port contains the Implementation

    Repository server process informationImplementation Repository acts as a level ofindirection and delivers at runtime the addressof the POA server process to the client

    Distributed Systems

    CORBA Overview

  • 8/8/2019 CORBA & RMI

    84/95

    Copyright Karsten Schulz Terp-Nielsen

    Object Model - remote object references

    IOR Object Reference

    IDL:MyObject Jupiter:8080

    Server: TestHost:8888

    OBJID:11

    OBJID:12

    POA1,OBJID:12

    OBJID:13

    Client

    POA1

    Pseudo-random number

    Implementation Repository: Jupiter:8080

    POA1 \bin\server\startPOA1 TestHost:8888

    Distributed Systems

    CORBA OverviewObj M d l P i R f l

  • 8/8/2019 CORBA & RMI

    85/95

    Copyright Karsten Schulz Terp-Nielsen

    Object Model - Persistent Reference example

    To make the Hello object referencespersistent you do the following

    Create a new Policy

    the LifeSpanPolicy equals persistent the IDAssignmentPolicy equals user_id

    for all others default values are used

    Create new POA associated withRooTManager with Policy the new policy

    Create servant and explicit activate servant Example hello_imr

    Distributed Systems

    CORBA OverviewI bili A hi

  • 8/8/2019 CORBA & RMI

    86/95

    Copyright Karsten Schulz Terp-Nielsen

    Interoperability Architecture

    The Interoperability Architecture for CORBAcontain elements like

    ORB interoperability

    Inter-ORB bridge support GIOPs and IIOPs

    An ORB is considered being interoperabilitycompliant when supporting

    GIOP/IIOP IOR

    Distributed Systems

    CORBA OverviewL g g M i g

  • 8/8/2019 CORBA & RMI

    87/95

    Copyright Karsten Schulz Terp-Nielsen

    Language Mappings

    The following language specific OMG IDLcompilers are contained in specifications

    ADA

    C

    C++

    Java

    Smalltalk

    CORBA Script

    COBOL

    LISP

    Phyton

    Client Server

    ADA

    C

    C++

    Java

    Smalltalk

    CORBA Script

    COBOL

    LISP

    Phyton

    Distributed Systems

    CORBA OverviewLanguage Mappings cross language example

  • 8/8/2019 CORBA & RMI

    88/95

    Copyright Karsten Schulz Terp-Nielsen

    Language Mappings - cross language example

    To show CORBA is language independentuse the IDL2CPP compiler on hello.idl togenerate a interface and a stub

    idl --no-skeletons hello.idl

    Make a client.cpp implementation and link itto a client.exe

    Start the Java ORB based hello server andstart the C++ ORB based hello client

    Distributed Systems

    J2SE 1.4 support for CORBA

  • 8/8/2019 CORBA & RMI

    89/95

    Copyright Karsten Schulz Terp-Nielsen

    pp

    Distributed Systems

    J2SE 1.4 support for CORBACORBA compliance

  • 8/8/2019 CORBA & RMI

    90/95

    Copyright Karsten Schulz Terp-Nielsen

    CORBA compliance

    JDK 1.4 contains a Java ORBimplementation supporting CORBAspecification 2.3.1

    JDK 1.4 contains the following CORBA tools IDL-to-Java compiler (idlj) Implementation Repository (orbd) transient Naming Service (orbd)

    persistent Naming Service (orbd) servertool (cmd line interface tool) tnamesrv (backward compability)

    Distributed Systems

    J2SE 1.4 support for CORBACORBA features

  • 8/8/2019 CORBA & RMI

    91/95

    Copyright Karsten Schulz Terp-Nielsen

    CORBA features

    GIOP 1.2 (IIOP)POA

    Portable interceptors

    provides hooks, or interception points,through which ORB services can interceptthe normal flow of execution of the ORB

    three typesIORInterceptor

    ClientRequestInterceptorServerRequestInterceptor

    Distributed Systems

    J2SE 1.4 support for CORBACORBA features

  • 8/8/2019 CORBA & RMI

    92/95

    Copyright Karsten Schulz Terp-Nielsen

    CORBA features

    The class ORBInitializer facilitates interceptorregistration and ORB initialization

    done through properties

    org.omg.PortableInterceptor.ORBInitializerClass.

    where is the string name of a classwhich implements

    org.omg.PortableInterceptor.ORBInitializer

    Interoperable Naming Service can use corba urls

    Distributed Systems

    J2SE 1.4 support for CORBACORBA example

  • 8/8/2019 CORBA & RMI

    93/95

    Copyright Karsten Schulz Terp-Nielsen

    CORBA example

    Example of using persistent object referencesand the implementation repository in J2SE 1.4(javacorba\exservertool)

    start the orbd (startorbd)

    start the server tool (servertool -ORBInitialPort 1050) register HelloServer and start it up start the client (startclient)

    every 6 seconds the client class the sayHello() on the

    remote object and shutdown the serverwatch in Taskmanager how the server is automaticallystarted up when its shutdown by the client

    Distributed Systems

    Next TimeCORBA Part II

  • 8/8/2019 CORBA & RMI

    94/95

    Copyright Karsten Schulz Terp-Nielsen

    Java Language Mapping

    Corba Communication Models

    Naming Services

    CORBA Naming Service

    CORBA Event Service

    CORBA Transaction Service

    CORBA 3.0 - Whats up?

    http://www.daneprairie.com/
  • 8/8/2019 CORBA & RMI

    95/95

    This document was created with Win2PDF available at http://www.daneprairie.com.The unregistered version of Win2PDF is for evaluation or non-commercial use only.

    http://www.daneprairie.com/http://www.daneprairie.com/http://www.daneprairie.com/http://www.daneprairie.com/