1 / 3

L2: Naming Dina Katabi & Sam Madden

L2: Naming Dina Katabi & Sam Madden. 6.033 Spring 2014 http://web.mit.edu/6.033. Name Examples in Systems. Client-Server Example. public interface ShipInterface extends Remote { public String ship(Integer) throws RemoteException ; } public static void main (String[] argv ) {

kael
Download Presentation

L2: Naming Dina Katabi & Sam Madden

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. L2: NamingDina Katabi & Sam Madden 6.033 Spring 2014 http://web.mit.edu/6.033

  2. Name Examples in Systems

  3. Client-Server Example public interface ShipInterface extends Remote { public String ship(Integer) throws RemoteException; } public static void main (String[] argv) { try { ShipInterfacesrvr = (ShipInterface) Naming.lookup("//amazon.com/Ship"); shipped = srvr.ship(“123”); System.out.println(shipped); } catch (Exception e) { System.out.println(”ShipClient exception: " + e); } }

More Related