1 / 10

Labs 1.1: Mensaje

Labs 1.1: Mensaje. Step 1: Get Started. Login: Username: nombre /cc5212 Password on board http://aidanhogan.com/teaching/cc5212-1/mdp-lab1.1.zip C:/Program Files (x86)/eclipse/ (in Spanish ) File > Import > …. Step 2: Connect to Directory. I start the directory!

jerod
Download Presentation

Labs 1.1: Mensaje

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. Labs 1.1: Mensaje

  2. Step 1: Get Started • Login: • Username: nombre/cc5212 • Password on board • http://aidanhogan.com/teaching/cc5212-1/mdp-lab1.1.zip • C:/Program Files (x86)/eclipse/ (in Spanish ) • File > Import > …

  3. Step 2: Connect to Directory • I start the directory! • vm116.dcc.uchile.cl (172.17.69.190) • Port 1985 • Connect … • org.mdp.dir.UserDirectoryClient • Get your IP (cmd > ipconfig)

  4. Step 3: Implement Message Server • org.mdp.im.InstantMessagingServer • ImplementInstantMessagingStub • Write message(.,.) method • Print the message to the console and whom it’s from

  5. Step 4: Implement Message App. • org.mdp.cli.InstantMessagingApp Server (receive) Client (send)

  6. Step 4a: Start Registry • org.mdp.cli.InstantMessagingApp • Implement startRegistry(.) Server (receive) Client (send) Registry (port)

  7. Step 4b: Register Skeleton • org.mdp.cli.InstantMessagingApp • Implement bindSkeleton(.) • key = “InstantMessagingServer” • Aka. InstantMessagingServer.class.getSimpleName(); • skeleton = new InstantMessagingServer() Server (receive) Client (send) Registry (port) key skeleton

  8. Step 4c: Find Peers w/ Directory • org.mdp.cli.InstantMessagingApp • connectToDirectory() 172.17.69.190 Directory 172.17.69.150 localhost Server (receive) Client (send) Registry (port) key skeleton

  9. Step 4d: Implement Client • org.mdp.cli.InstantMessagingApp • messageUser(.,.,.) • Connect to remote registry • Get the stub from the registry (same key) • Message user! Directory 172.17.69.150 localhost Server (receive) Client (send) Registry (port) key skeleton

  10. Step 4e: Setup Command Line • Right click build.xml • > Run As > Ant Build • Open command line and go to distdirectory of the project java –jar rmi.jar InstantMessagingApp • Add yourself • Message classmates!

More Related