File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Java Basics: Distributed

 
Caglar Cataloglu
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Caglar Cataloglu
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic