SlideShare a Scribd company logo
1 of 3
Creatinga simple REMOTEMETHOD INVOCATION (RMI) applicationinJavausingEclipse IDE. Java
Remote MethodInvocation(RMI) allowsyoutowrite distributedobjectsusingJava.RMIprovidesa
simple anddirectmodel fordistributedcomputationwithJavaobjects.These objectscanbe new
Java objectsorcan be simple JavawrappersaroundanexistingAPI.Javaembracesthe "Write Once,
Run Anywhere model.RMIextendsthe Javamodel tobe run everywhere."Because RMIiscentered
on Java,it bringsthe powerof Java safetyandportabilitytodistributedcomputing.RMIenablesyou
not onlytopass data amongobjectson differentsystemsbutalsotoinvoke methodsinaremote
object.
RMI isan APIwhichallowsanobjectto invoke amethodonan objectthat existsinanotheraddress
space,whichcouldbe on the same machine or on a remote machine.ThroughRMI,objectrunning
ina JVMpresentona computer(Clientside) caninvoke methodsonanobjectpresentinanother
JVM(Serverside).RMIcreatesa publicremote serverobjectthatenablesthe clientandserver-side
communicationsthroughsimple methodcallsonthe serverobject.The communicationbetween
clientandserverishandledbyusingtwointermediate objects:Stubobject(onclientside)and
Skeletonobject(onthe serverside).
Here in thisproject,we will discusshowtodevelopabasic RMI applicationwhichwill tell whether a
numberisPrime or not.Thissimple applicationwill be veryuseful tounderstandthe working of RMI
client and server objects. Here we will discuss the step by step procedures to create an RMI
application.
Prerequisites:
 Basic understandingof howtocreate andrun a Java project(applications) inEclipse IDE.
 Basic understandingof RMI API.
 Basic understandingof Object-OrientedProgramminglogics.
Advantages of RMI APIs:
1. Object Oriented: RMI can pass full objects as arguments and return values, not just
predefineddatatypes.Thismeansthatyou can pass complex types, such as a standard Java
hashtable object,asa single argument.InexistingRPCsystems,you would have to have the
client decompose such an object into primitive data types, ship those data types, and
recreate a hashtable onthe server.RMI letsyoushipobjectsdirectlyacrossthe wire with no
extra client code.
2. Mobile Behaviour:RMI can move behavior(classimplementations) fromclienttoserverand
servertoclient.Forexample,youcandefine aninterface for examining employee expense
reportsto see whethertheyconformtocurrentcompanypolicy.Whenan expense report is
created, an object that implements that interface can be fetched by the client from the
server.Whenthe policieschange,the serverwill startreturninga different implementation
of that interface that uses the new policies. The constraints will, therefore, be checked on
the client side-providing faster feedback to the user and less load on the server without
installing any new software on the user's system. This gives you maximal flexibility since
changing policies requires you to write only one new Java class and install it once on the
server host.
Real-Time Applications of RMI:
1. A Real-Time RMI Framework for the RTSJ: The Real-Time Specification for Java (RTSJ)
providesaplatformforthe developmentof real-time applications. However, the RTSJ does
not take the distribution requirements of real-time applications into consideration. As
distribution in Java is often implemented using Java’s Remote Method Invocation (RMI), a
real-time versionof RMIbetween RTSJ implementations can provide a platform for writing
distributed real-time systems.
2. Integer Spreadsheet by Athena Design: Integer is the most powerful, easiest to use
spreadsheet component for Java. It allows enterprise developers to embed full real-time
spreadsheet functionality into their custom applications with little or no code.
3. IBM San Francisco Project: The San Francisco project is targeted at helping application
developers rapidly build distributed, object-oriented applications. It is doing this by
providing a base set of object-oriented infrastructure and application logic which can be
expanded and enhanced by each developer.
Steps for creating a simple RMI application to find whether a number is prime or not
In this Project will going use Eclipse IDE to create:
 Simple Remote Object.
 Servertoinstantiate (create) andbindaremote object.
 Clienttoinvoke remotelyanobject
The projectstepsthat we coveredinthisprojectare:
1. Create SimpleRMIserverprojectandSimpleRMIclientproject
2. DefiningRemote Interface andImplementationClass
3. Create and Execute ServerApplication
4. Create and execute the clientapplicationprogram
For more detailsplease visit Javainterview questionsforfreshers ourwebsite
SkillPractical providesthe best interview forJavafrombeginnerto expert. TheseJavainterview
questionswill helpthe userstogetgoodknowledge. Some of the interview questions theycover
are:
1. If a variable isdeclaredasprivate,where maythe variable be accessed?
2. What is the differencebetweenSwingandAWT components?
3. How many bitsare usedto representUnicode,ASCII,UTF-16,andUTF-8 characters?
4. Accordingto Java operatorprecedence,whichoperatorisconsideredtobe withhighest
precedence?
5. What is the defaultvalue of floatanddouble datatype inJava?
6. When parseInt() methodcanbe used?
7. What is the major difference betweenjava.util.Dateandjava.sql.Datedatatype?
8. How can we retrieve the file inthe Oracle database?
9. What are the advantagesof JSON overXML?
10. Whichmethodof the componentclassisusedto setthe positionandsize of acomponent?
Creating a Simple RMI App in Eclipse

More Related Content

What's hot

Dnc2015 azure-microservizi-vforusso
Dnc2015 azure-microservizi-vforussoDnc2015 azure-microservizi-vforusso
Dnc2015 azure-microservizi-vforussoDotNetCampus
 
ReactiveCocoa - Functional Reactive Programming concepts in iOS
ReactiveCocoa - Functional Reactive Programming concepts in iOSReactiveCocoa - Functional Reactive Programming concepts in iOS
ReactiveCocoa - Functional Reactive Programming concepts in iOSAndrei Popa
 
PukaPuka Presentation
PukaPuka PresentationPukaPuka Presentation
PukaPuka PresentationDevanshMaurya
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnetrainynovember12
 
Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorialvinayiqbusiness
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring FrameworkEdureka!
 
Spring MVC introduction HVA
Spring MVC introduction HVASpring MVC introduction HVA
Spring MVC introduction HVAPeter Maas
 
Dependency Injection & IoC
Dependency Injection & IoCDependency Injection & IoC
Dependency Injection & IoCDennis Loktionov
 
MVVM Design Pattern NDC2009
MVVM Design Pattern NDC2009MVVM Design Pattern NDC2009
MVVM Design Pattern NDC2009Jonas Follesø
 
Introducing Pebble SDK 2.0
Introducing Pebble SDK 2.0Introducing Pebble SDK 2.0
Introducing Pebble SDK 2.0Cherie Williams
 
Microservices Design Patterns Explained | Edureka
Microservices Design Patterns Explained | EdurekaMicroservices Design Patterns Explained | Edureka
Microservices Design Patterns Explained | EdurekaEdureka!
 
IBM MobileFirst Platform Pot Sentiment Analysis v3
IBM MobileFirst Platform Pot Sentiment Analysis v3IBM MobileFirst Platform Pot Sentiment Analysis v3
IBM MobileFirst Platform Pot Sentiment Analysis v3Banking at Ho Chi Minh city
 
Model view controller (mvc)
Model view controller (mvc)Model view controller (mvc)
Model view controller (mvc)M Ahsan Khan
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )Ahmed Emad
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobilenaral
 
Use Cases for JNBridgePro in the Cloud
Use Cases for JNBridgePro in the CloudUse Cases for JNBridgePro in the Cloud
Use Cases for JNBridgePro in the CloudJNBridge
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC StructureDipika Wadhvani
 

What's hot (20)

Dnc2015 azure-microservizi-vforusso
Dnc2015 azure-microservizi-vforussoDnc2015 azure-microservizi-vforusso
Dnc2015 azure-microservizi-vforusso
 
ReactiveCocoa - Functional Reactive Programming concepts in iOS
ReactiveCocoa - Functional Reactive Programming concepts in iOSReactiveCocoa - Functional Reactive Programming concepts in iOS
ReactiveCocoa - Functional Reactive Programming concepts in iOS
 
Mi0041 java and web design
Mi0041 java and web designMi0041 java and web design
Mi0041 java and web design
 
PukaPuka Presentation
PukaPuka PresentationPukaPuka Presentation
PukaPuka Presentation
 
Model View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In AspnetModel View Presenter (MVP) In Aspnet
Model View Presenter (MVP) In Aspnet
 
Slide Presentation of MVP Pattern Concept
Slide Presentation of MVP Pattern ConceptSlide Presentation of MVP Pattern Concept
Slide Presentation of MVP Pattern Concept
 
Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorial
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring Framework
 
Training: MVVM Pattern
Training: MVVM PatternTraining: MVVM Pattern
Training: MVVM Pattern
 
Spring MVC introduction HVA
Spring MVC introduction HVASpring MVC introduction HVA
Spring MVC introduction HVA
 
Dependency Injection & IoC
Dependency Injection & IoCDependency Injection & IoC
Dependency Injection & IoC
 
MVVM Design Pattern NDC2009
MVVM Design Pattern NDC2009MVVM Design Pattern NDC2009
MVVM Design Pattern NDC2009
 
Introducing Pebble SDK 2.0
Introducing Pebble SDK 2.0Introducing Pebble SDK 2.0
Introducing Pebble SDK 2.0
 
Microservices Design Patterns Explained | Edureka
Microservices Design Patterns Explained | EdurekaMicroservices Design Patterns Explained | Edureka
Microservices Design Patterns Explained | Edureka
 
IBM MobileFirst Platform Pot Sentiment Analysis v3
IBM MobileFirst Platform Pot Sentiment Analysis v3IBM MobileFirst Platform Pot Sentiment Analysis v3
IBM MobileFirst Platform Pot Sentiment Analysis v3
 
Model view controller (mvc)
Model view controller (mvc)Model view controller (mvc)
Model view controller (mvc)
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
 
Use Cases for JNBridgePro in the Cloud
Use Cases for JNBridgePro in the CloudUse Cases for JNBridgePro in the Cloud
Use Cases for JNBridgePro in the Cloud
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
 

Similar to Creating a Simple RMI App in Eclipse

Remote method invocation
Remote method invocationRemote method invocation
Remote method invocationDew Shishir
 
Resume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_expResume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_expSandip Mohod
 
Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method InvocationSonali Parab
 
Learn Java Basics with Cyber Success.pdf
Learn Java Basics with Cyber Success.pdfLearn Java Basics with Cyber Success.pdf
Learn Java Basics with Cyber Success.pdfcybersuccessseo
 
Java remote control for laboratory monitoring
Java remote control for laboratory monitoringJava remote control for laboratory monitoring
Java remote control for laboratory monitoringIAEME Publication
 
Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method InvocationPaul Pajo
 
Javarmi 130925082348-phpapp01
Javarmi 130925082348-phpapp01Javarmi 130925082348-phpapp01
Javarmi 130925082348-phpapp01heenamithadiya
 
Latest Web development technologies 2021
 Latest Web development technologies 2021 Latest Web development technologies 2021
Latest Web development technologies 2021SWATHYSMOHAN
 

Similar to Creating a Simple RMI App in Eclipse (20)

Oracle docs rmi applications
Oracle docs rmi applicationsOracle docs rmi applications
Oracle docs rmi applications
 
Remote method invocation
Remote method invocationRemote method invocation
Remote method invocation
 
Resume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_expResume_Sandip_Mohod_Java_9_plus_years_exp
Resume_Sandip_Mohod_Java_9_plus_years_exp
 
Remote method invocatiom
Remote method invocatiomRemote method invocatiom
Remote method invocatiom
 
Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method Invocation
 
Rmi
RmiRmi
Rmi
 
Rmi
RmiRmi
Rmi
 
Java rmi tutorial
Java rmi tutorialJava rmi tutorial
Java rmi tutorial
 
Learn Java Basics with Cyber Success.pdf
Learn Java Basics with Cyber Success.pdfLearn Java Basics with Cyber Success.pdf
Learn Java Basics with Cyber Success.pdf
 
Spring interview questions
Spring interview questionsSpring interview questions
Spring interview questions
 
Java remote control for laboratory monitoring
Java remote control for laboratory monitoringJava remote control for laboratory monitoring
Java remote control for laboratory monitoring
 
Remote Method Invocation
Remote Method InvocationRemote Method Invocation
Remote Method Invocation
 
Resume
ResumeResume
Resume
 
Spring learning path
Spring learning pathSpring learning path
Spring learning path
 
Basic java
Basic java Basic java
Basic java
 
Javarmi 130925082348-phpapp01
Javarmi 130925082348-phpapp01Javarmi 130925082348-phpapp01
Javarmi 130925082348-phpapp01
 
Java rmi
Java rmiJava rmi
Java rmi
 
Rmi
RmiRmi
Rmi
 
Mean stack Magics
Mean stack MagicsMean stack Magics
Mean stack Magics
 
Latest Web development technologies 2021
 Latest Web development technologies 2021 Latest Web development technologies 2021
Latest Web development technologies 2021
 

More from SkillPracticalEdTech

More from SkillPracticalEdTech (14)

Spring boot competitive tests
Spring boot competitive testsSpring boot competitive tests
Spring boot competitive tests
 
Spring competitive tests
Spring competitive testsSpring competitive tests
Spring competitive tests
 
iOS certification competitive tests and interview questions
iOS certification competitive tests and interview questionsiOS certification competitive tests and interview questions
iOS certification competitive tests and interview questions
 
Dotnet competitive tests
Dotnet competitive testsDotnet competitive tests
Dotnet competitive tests
 
Spring boot competitive tests
Spring boot competitive testsSpring boot competitive tests
Spring boot competitive tests
 
Spring competitive tests
Spring competitive testsSpring competitive tests
Spring competitive tests
 
Apttus job support
Apttus job supportApttus job support
Apttus job support
 
Interview questions on core java
Interview questions on core java Interview questions on core java
Interview questions on core java
 
Spring technical interview questions
Spring technical interview questions Spring technical interview questions
Spring technical interview questions
 
Java developer interview questions
Java developer interview questionsJava developer interview questions
Java developer interview questions
 
Spring diy projects
Spring diy projectsSpring diy projects
Spring diy projects
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
 
Core Java Learning Path
Core Java Learning PathCore Java Learning Path
Core Java Learning Path
 
Face mask detection using convolutional neural networks article
Face mask detection using convolutional neural networks articleFace mask detection using convolutional neural networks article
Face mask detection using convolutional neural networks article
 

Recently uploaded

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Creating a Simple RMI App in Eclipse

  • 1. Creatinga simple REMOTEMETHOD INVOCATION (RMI) applicationinJavausingEclipse IDE. Java Remote MethodInvocation(RMI) allowsyoutowrite distributedobjectsusingJava.RMIprovidesa simple anddirectmodel fordistributedcomputationwithJavaobjects.These objectscanbe new Java objectsorcan be simple JavawrappersaroundanexistingAPI.Javaembracesthe "Write Once, Run Anywhere model.RMIextendsthe Javamodel tobe run everywhere."Because RMIiscentered on Java,it bringsthe powerof Java safetyandportabilitytodistributedcomputing.RMIenablesyou not onlytopass data amongobjectson differentsystemsbutalsotoinvoke methodsinaremote object. RMI isan APIwhichallowsanobjectto invoke amethodonan objectthat existsinanotheraddress space,whichcouldbe on the same machine or on a remote machine.ThroughRMI,objectrunning ina JVMpresentona computer(Clientside) caninvoke methodsonanobjectpresentinanother JVM(Serverside).RMIcreatesa publicremote serverobjectthatenablesthe clientandserver-side communicationsthroughsimple methodcallsonthe serverobject.The communicationbetween clientandserverishandledbyusingtwointermediate objects:Stubobject(onclientside)and Skeletonobject(onthe serverside). Here in thisproject,we will discusshowtodevelopabasic RMI applicationwhichwill tell whether a numberisPrime or not.Thissimple applicationwill be veryuseful tounderstandthe working of RMI client and server objects. Here we will discuss the step by step procedures to create an RMI application. Prerequisites:  Basic understandingof howtocreate andrun a Java project(applications) inEclipse IDE.  Basic understandingof RMI API.  Basic understandingof Object-OrientedProgramminglogics. Advantages of RMI APIs: 1. Object Oriented: RMI can pass full objects as arguments and return values, not just predefineddatatypes.Thismeansthatyou can pass complex types, such as a standard Java hashtable object,asa single argument.InexistingRPCsystems,you would have to have the client decompose such an object into primitive data types, ship those data types, and recreate a hashtable onthe server.RMI letsyoushipobjectsdirectlyacrossthe wire with no extra client code. 2. Mobile Behaviour:RMI can move behavior(classimplementations) fromclienttoserverand servertoclient.Forexample,youcandefine aninterface for examining employee expense reportsto see whethertheyconformtocurrentcompanypolicy.Whenan expense report is created, an object that implements that interface can be fetched by the client from the server.Whenthe policieschange,the serverwill startreturninga different implementation of that interface that uses the new policies. The constraints will, therefore, be checked on the client side-providing faster feedback to the user and less load on the server without installing any new software on the user's system. This gives you maximal flexibility since changing policies requires you to write only one new Java class and install it once on the server host. Real-Time Applications of RMI:
  • 2. 1. A Real-Time RMI Framework for the RTSJ: The Real-Time Specification for Java (RTSJ) providesaplatformforthe developmentof real-time applications. However, the RTSJ does not take the distribution requirements of real-time applications into consideration. As distribution in Java is often implemented using Java’s Remote Method Invocation (RMI), a real-time versionof RMIbetween RTSJ implementations can provide a platform for writing distributed real-time systems. 2. Integer Spreadsheet by Athena Design: Integer is the most powerful, easiest to use spreadsheet component for Java. It allows enterprise developers to embed full real-time spreadsheet functionality into their custom applications with little or no code. 3. IBM San Francisco Project: The San Francisco project is targeted at helping application developers rapidly build distributed, object-oriented applications. It is doing this by providing a base set of object-oriented infrastructure and application logic which can be expanded and enhanced by each developer. Steps for creating a simple RMI application to find whether a number is prime or not In this Project will going use Eclipse IDE to create:  Simple Remote Object.  Servertoinstantiate (create) andbindaremote object.  Clienttoinvoke remotelyanobject The projectstepsthat we coveredinthisprojectare: 1. Create SimpleRMIserverprojectandSimpleRMIclientproject 2. DefiningRemote Interface andImplementationClass 3. Create and Execute ServerApplication 4. Create and execute the clientapplicationprogram For more detailsplease visit Javainterview questionsforfreshers ourwebsite SkillPractical providesthe best interview forJavafrombeginnerto expert. TheseJavainterview questionswill helpthe userstogetgoodknowledge. Some of the interview questions theycover are: 1. If a variable isdeclaredasprivate,where maythe variable be accessed? 2. What is the differencebetweenSwingandAWT components? 3. How many bitsare usedto representUnicode,ASCII,UTF-16,andUTF-8 characters? 4. Accordingto Java operatorprecedence,whichoperatorisconsideredtobe withhighest precedence? 5. What is the defaultvalue of floatanddouble datatype inJava? 6. When parseInt() methodcanbe used? 7. What is the major difference betweenjava.util.Dateandjava.sql.Datedatatype? 8. How can we retrieve the file inthe Oracle database? 9. What are the advantagesof JSON overXML? 10. Whichmethodof the componentclassisusedto setthe positionandsize of acomponent?