RPC, RMI and CORBA

RPC, RMI and CORBA RPC, RMI and CORBA

12.07.2015 Views

Design Exercise – a remote procedurecall protocol• Service – Remote Cryptographic Engine (RCE)• Module has the following APIpublic String encrypt( int[] key, String plaintext)public String derypt( int[] key, String cyphertext)public String messageDigest( String plaintext)where: key is an array of 4 32-bit integers

Programming with RMI*• create a remote object• define a remote interface (CORBA IDL or Java)• create an implementation of the remote interface• make available to users• by registering with a name service• by passing as an argument or a return value• use a remote object:• obtain a remote reference• by “bootstrapping” (from a name service)• as an argument or return value• reference is to remote interface type not implementation class• operate on the reference• standard method invocation syntax• multiple possible semantics• be prepared to handle errors from partial failure* In these lectures, RMI means remote method invocationgenerally, unless Java RMI is specifically indicated

Programming with <strong>RMI</strong>*• create a remote object• define a remote interface (<strong>CORBA</strong> IDL or Java)• create an implementation of the remote interface• make available to users• by registering with a name service• by passing as an argument or a return value• use a remote object:• obtain a remote reference• by “bootstrapping” (from a name service)• as an argument or return value• reference is to remote interface type not implementation class• operate on the reference• st<strong>and</strong>ard method invocation syntax• multiple possible semantics• be prepared to h<strong>and</strong>le errors from partial failure* In these lectures, <strong>RMI</strong> means remote method invocationgenerally, unless Java <strong>RMI</strong> is specifically indicated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!