Rmi

395 views

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
395
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Rmi

  1. 1. Distributed Computing in Java tnngo2@gmail.com
  2. 2. A java application can only invoke the methods ofthe classes available inside its JVM
  3. 3. Distributed Computing Distributed System consists of multiple autonomous computers that communicate through a computer network to achieve a common goal.
  4. 4. Distributed Computing revolves aroundclient-server technology where several clientprograms communicate with one or more serverapplications
  5. 5. Remote Method Invocation (RMI) allows a Javaprogram running inside a JVM to execute amethod of a class available in another JVM
  6. 6. Why don’t use Socket instead of RMI?
  7. 7. Why don’t use Socket instead of RMI? Because RMI allows to serialize and transmit objects #serialize
  8. 8. RMI Architecture the definition of behavior and the implementation of that behavior are separate concepts => put it on separate JVMs
  9. 9. RMI Architecture Clients are concerned about the definition of a service Servers are focused on providing the service
  10. 10. RMI Architecture
  11. 11. Stub and Skeleton Layer Proxy design pattern
  12. 12. Stub and Skeleton Layer Marshaling and Unmarshaling data Transmitting and receiving data to andfrom the Remote Reference Layer #Marshaling #Unmarshaling
  13. 13. Remote Reference Layer defines and supports the invocation semantics of the RMI connection. converts client request into low-level RMI transport request and forwards it to transport layer
  14. 14. Transport Protocol Layer makes the connection between JVMs. setting up connection using Sockets. listens for incoming calls manages requests from reference layer.
  15. 15. Components of RMI application: Remote Interface Implementation class Stub Skeleton

×