How Do You Run A RMI Program In Java Application?
-
-
Answer:
Like with most things, running a RMI file in Java is quite easy once you know how. However an element of prior knowledge is required. To run an RMI file in Java just follow the steps below. The first thing you will have to do is to pull together all the interfaces and kinds of servers you have as well as your client programmes. Once this is done you will need to generate stubs and skeletons for remote programmes. This would be your server or if your communication is one way from the client to the server. Do this by using the following command. >rmic To run the RMI registry by command type in >start rmiregistry Then you can run your server programme by typing in the command: >start java To call in your required methods on the server programme just start your client programme. Your Java file should now run RMI file in Java.
Connor Sephton at Blurtit.com Visit the source
Other answers
Follow the following steps for running an RMI program: 1. Compile the interfaces and classes of server and client programs. 2. Generate stubs and skeletons for remote program e.g server (if your communication is one way i.e. From client to server) by the following command: >rmic 3. Run RMI registry by command: >start rmiregistry 4. Run your server program by command: >start java 5. Start your client program that will call your required methods on server program.
Nadeem Ullah
Related Q & A:
- How can I make a Spinner only by java?Best solution by stackoverflow.com
- How do I do a HTTP GET in Java (android?Best solution by Stack Overflow
- How to run a external program in PHP?Best solution by Stack Overflow
- How do I run a silent auction?Best solution by Yahoo! Answers
- How do you run a print head cleaning?Best solution by wikihow.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.