Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help with RMI

  Asked By: Jason    Date: Mar 09    Category: Java    Views: 603
  

I have to design a server which
is Fault Tolerant using RMI? I read about RMI,
but I can't find information about Fault
Tolerence......What is Fault Tolerence?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Raul Clark     Answered On: Mar 09

Well fault tolerance as I know
it is reliability i.e the server  is immune to
failures and can react to failures and correct itself
automatically.<br><br>this is done using the familiar aphorism "redundancy
increases reliability". the server actions are duplicated
and exist on say multiple computers as components.
say the same task T is implemented by two different
components A and B. now the server always uses component A
to service the task T. Now if A fails then the
server can use B for implementing T.<br><br>This is
usually done using RMI/CORBA which support distributed
objects.

 
Answer #2    Answered By: Jonathan Brown     Answered On: Mar 09

In Java and particularly RMI, I interpret tolerance
to mean that an error can be detected and your code
deals with it in some that allows the code to keep
running (maybe retry or offer a dialog to the user to
submit different values, etc).<br><br>This means that
you code try/catch blocks all over your code and you
handle all of the possible exceptions and errors that
can be thrown. You don't ever let the program just
quit without the user instructing it to do
so.<br><br>RMI requires that you catch RMIExceptions. What you
do with these is what determines if your code is
fault tolerant, or not.

 
Didn't find what you were looking for? Find more on Help with RMI Or get search suggestion and latest updates.




Tagged: