3
Most read
4
Most read
5
Most read
REMOTE METHOD INVOCATION
(RMI)
Presented by:-
SARFARAZ HUSAIN
1305010334
MCA 5TH SEM
RMI....
1. What is RMI ?
2. Important compomnent of RMI
3. RMI Stub and Skeleton
4. RMI Advantages
5. RMI Disadvanteges
What is RMI ?
RMI is a lightweight java technology that provides access
to remote methods, similar to RPC, but Object-
Oriented.RMI provides remote object access for a client
and object registration for servers.
RMI is a Java Technology since it requires that client and
server objects run in a JVM. By using IIOP(Internet Inter-
ORB Protocol) transport protocol, however, it is possible
to connect RMI-clients to non-java server objects(CORBA).
CLIENT SERVERRMI
Important compomnent of RMI
Client:-
The clients lookup a remote object and calls methods on the obtained
remote object.
Object:-
The server registeres itself in the RMI registry and accepts method
invocations from yhe client.
RMI Registry:-
The registry is the remote object lookup service.The Registry may run
on the same host as the server or on a different host.The registry can
also be a JNDI server.
Web server:-
A plain venilla HTTP sever may hold remote object classes for
downloading by the client.
RMI Stub and Skeleton
Stub:-
1.It Iinitiates a connection with remote Virtual Machine (JVM),
2.It writes and transmits (marshals) the parameters to the remote Virtual Machine
3.It waits for the result
4.It reads (unmarshals) the return value or exception, and
5.It finally, returns the value to the caller.
Skeleton:-
1.It reads the parameter for the remote method
2.It invokes the method on the actual remote object, and
3.It writes and transmits (marshals) the result to the caller.
Advantages of RMI
1. Handles threads for you
2. Handles Sockets for you
3. Nice GC of lost clients. ie Unreferenced
4. Marshalls objects for you
5. Dynamic loading of classes are available.
6. Can also make changes on the server end, that
might not mean you need to change anything on the
client side.
Disadvantages of RMI
1. Strictly Java Cannot use with other code outside Java
2. Cannot guarantee that a client will always use the
same thread in consecutive calls. Meaning you need to
write a mechanism for identifying the client yourself
3. I think it is more Hackable, security needs to be
monitored more closely.
See I always get stuck with the disadvatages. I can come
up with 2 good ones, and falter on a third.
THANKs

More Related Content

PPTX
Java RMI
PPS
Java rmi
PPTX
PDF
Web Services (SOAP, WSDL, UDDI)
PPT
Corba introduction and simple example
PPT
Distributed objects & components of corba
PDF
Remote Method Invocation (RMI)
PDF
Introduction to Web Services
Java RMI
Java rmi
Web Services (SOAP, WSDL, UDDI)
Corba introduction and simple example
Distributed objects & components of corba
Remote Method Invocation (RMI)
Introduction to Web Services

What's hot (20)

PPT
Remote Method Invocation
PPT
Servlet life cycle
PPTX
Java Server Pages(jsp)
PPTX
Web services SOAP
PPTX
Jdbc ppt
PPTX
Java Beans
PPTX
Simple object access protocol(soap )
PPT
PPTX
Introduction to ajax
PPTX
HTTP request and response
PPTX
Java Server Pages
PDF
ASP.NET- database connectivity
PPTX
Java RMI(Remote Method Invocation)
PPTX
Servlets
PPTX
Database Access With JDBC
PPTX
Type casting in java
PDF
Servlet and servlet life cycle
PPS
Java Hibernate Programming with Architecture Diagram and Example
PPTX
servlet in java
Remote Method Invocation
Servlet life cycle
Java Server Pages(jsp)
Web services SOAP
Jdbc ppt
Java Beans
Simple object access protocol(soap )
Introduction to ajax
HTTP request and response
Java Server Pages
ASP.NET- database connectivity
Java RMI(Remote Method Invocation)
Servlets
Database Access With JDBC
Type casting in java
Servlet and servlet life cycle
Java Hibernate Programming with Architecture Diagram and Example
servlet in java
Ad

Similar to Rmi presentation (20)

PPTX
Remote Method Innovation (RMI) In JAVA
PDF
Distributed Programming (RMI)
PPTX
Remote method invocatiom
PDF
Remote Method Invocation in JAVA
PPTX
DOCX
Remote Method Invocation
DOCX
Java rmi
PPSX
Java rmi
PPSX
Javarmi 130925082348-phpapp01
DOCX
Report on mini project(Student database handling using RMI)
PDF
Java RMI Detailed Tutorial
PPTX
Rmi architecture
PPTX
#4 (Remote Method Invocation)
PDF
Module 3 remote method invocation-2
PDF
Java rmi tutorial
PDF
PPTX
Remote method invocation
PPTX
What is rmi?
PPTX
Remote method invocation
Remote Method Innovation (RMI) In JAVA
Distributed Programming (RMI)
Remote method invocatiom
Remote Method Invocation in JAVA
Remote Method Invocation
Java rmi
Java rmi
Javarmi 130925082348-phpapp01
Report on mini project(Student database handling using RMI)
Java RMI Detailed Tutorial
Rmi architecture
#4 (Remote Method Invocation)
Module 3 remote method invocation-2
Java rmi tutorial
Remote method invocation
What is rmi?
Remote method invocation
Ad

More from Azad public school (13)

PDF
software engineering
PPT
PDF
Computer science-view notices
PPT
Cathoderaytube
PPT
C programs pbq final
PPT
2. data warehouse 2nd unit
PPT
3. mining frequent patterns
PPT
3.1 mining frequent patterns with association rules-mca4
PPT
2. olap warehouse
PPT
2. visualization in data mining
PPT
PPT
Uml manuu lab BY SARFARAZ HUSAIN
software engineering
Computer science-view notices
Cathoderaytube
C programs pbq final
2. data warehouse 2nd unit
3. mining frequent patterns
3.1 mining frequent patterns with association rules-mca4
2. olap warehouse
2. visualization in data mining
Uml manuu lab BY SARFARAZ HUSAIN

Recently uploaded (20)

PDF
International_Financial_Reporting_Standa.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Hazard Identification & Risk Assessment .pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
IGGE1 Understanding the Self1234567891011
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
International_Financial_Reporting_Standa.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
My India Quiz Book_20210205121199924.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
Hazard Identification & Risk Assessment .pdf
HVAC Specification 2024 according to central public works department
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Chinmaya Tiranga quiz Grand Finale.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
What if we spent less time fighting change, and more time building what’s rig...
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
AI-driven educational solutions for real-life interventions in the Philippine...
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
IGGE1 Understanding the Self1234567891011
B.Sc. DS Unit 2 Software Engineering.pptx
History, Philosophy and sociology of education (1).pptx

Rmi presentation

  • 1. REMOTE METHOD INVOCATION (RMI) Presented by:- SARFARAZ HUSAIN 1305010334 MCA 5TH SEM
  • 2. RMI.... 1. What is RMI ? 2. Important compomnent of RMI 3. RMI Stub and Skeleton 4. RMI Advantages 5. RMI Disadvanteges
  • 3. What is RMI ? RMI is a lightweight java technology that provides access to remote methods, similar to RPC, but Object- Oriented.RMI provides remote object access for a client and object registration for servers. RMI is a Java Technology since it requires that client and server objects run in a JVM. By using IIOP(Internet Inter- ORB Protocol) transport protocol, however, it is possible to connect RMI-clients to non-java server objects(CORBA). CLIENT SERVERRMI
  • 4. Important compomnent of RMI Client:- The clients lookup a remote object and calls methods on the obtained remote object. Object:- The server registeres itself in the RMI registry and accepts method invocations from yhe client. RMI Registry:- The registry is the remote object lookup service.The Registry may run on the same host as the server or on a different host.The registry can also be a JNDI server. Web server:- A plain venilla HTTP sever may hold remote object classes for downloading by the client.
  • 5. RMI Stub and Skeleton Stub:- 1.It Iinitiates a connection with remote Virtual Machine (JVM), 2.It writes and transmits (marshals) the parameters to the remote Virtual Machine 3.It waits for the result 4.It reads (unmarshals) the return value or exception, and 5.It finally, returns the value to the caller. Skeleton:- 1.It reads the parameter for the remote method 2.It invokes the method on the actual remote object, and 3.It writes and transmits (marshals) the result to the caller.
  • 6. Advantages of RMI 1. Handles threads for you 2. Handles Sockets for you 3. Nice GC of lost clients. ie Unreferenced 4. Marshalls objects for you 5. Dynamic loading of classes are available. 6. Can also make changes on the server end, that might not mean you need to change anything on the client side.
  • 7. Disadvantages of RMI 1. Strictly Java Cannot use with other code outside Java 2. Cannot guarantee that a client will always use the same thread in consecutive calls. Meaning you need to write a mechanism for identifying the client yourself 3. I think it is more Hackable, security needs to be monitored more closely. See I always get stuck with the disadvatages. I can come up with 2 good ones, and falter on a third.