wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes About Java Basics: Distributed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "About Java Basics: Distributed" Watch "About Java Basics: Distributed" New topic
Author

About Java Basics: Distributed

Caglar Cataloglu
Greenhorn

Joined: Feb 06, 2010
Posts: 25
Hi,
I have started Sun Java Training Course Online and it tells me about advantages of using Java, one of them is because java is distributed.
I want to know your ideas about the subject Distributed. (RMI-CORBA-URL)

Why do we actually need to use this?
What are the advantages to use RMI?

I want to read and know your ideas instead of reading high-technical info on the Wiki or any other books.

Thanks


Java Lover
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Caglar Cataloglu wrote:
Why do we actually need to use this?
What are the advantages to use RMI?

how do you[your program running in your server/Jvm] access a java object which is running in another Jvm?
Caglar Cataloglu
Greenhorn

Joined: Feb 06, 2010
Posts: 25
Seetharaman Venkatasamy wrote:
Caglar Cataloglu wrote:
Why do we actually need to use this?
What are the advantages to use RMI?

how do you[your program running in your server/Jvm] access a java object which is running in another Jvm?


but
why do i need to access a java object running in another Jvm?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14194
    
  20

Suppose that you are writing software for a company that has a big online shop. For example, Amazon. They sell books all over the world and 24 hours per day, thousands of people are looking at Amazon's website and buying books.

For such an online shop system, you need more than a single server computer. A single computer would not be able to handle the thousands of people who want to use the system at the same time, and it would also be too vulnerable for failures - suppose something would break in the computer, then the whole shop would be down until the computer was repaired. So, for such systems, people use clusters of servers - multiple computers, sometimes very many computers, that work together and each handle part of the clients.

With Java, you can write a single program that works on all those computers at the same time. Java contains some technologies that make it easy for the different parts of the program that run on separate computers to work together. For example, RMI (remote method invocation) makes it easy to call methods of objects that are running in the JVM of another server.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Caglar Cataloglu
Greenhorn

Joined: Feb 06, 2010
Posts: 25
Jesper de Jong wrote:Suppose that you are writing software for a company that has a big online shop. For example, Amazon. They sell books all over the world and 24 hours per day, thousands of people are looking at Amazon's website and buying books.

For such an online shop system, you need more than a single server computer. A single computer would not be able to handle the thousands of people who want to use the system at the same time, and it would also be too vulnerable for failures - suppose something would break in the computer, then the whole shop would be down until the computer was repaired. So, for such systems, people use clusters of servers - multiple computers, sometimes very many computers, that work together and each handle part of the clients.

With Java, you can write a single program that works on all those computers at the same time. Java contains some technologies that make it easy for the different parts of the program that run on separate computers to work together. For example, RMI (remote method invocation) makes it easy to call methods of objects that are running in the JVM of another server.


Great answer that i need to know, thanks, now Distributed Java and RMI makes sense
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2265
    
    3

Caglar Cataloglu wrote:Great answer that i need to know, thanks


That is our good buddy Jesper, always very wise!

If you want to get started and have an idea of how RMI works, please take a look here. I think it might be helpful!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
GeeCON Prague 2014
 
subject: About Java Basics: Distributed