Re: RMI data duplication

firewall <[email protected]> Sat, 20 Dec 2008 03:45:38 -0800
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Niclas Hedhman wrote:
> 
> On Fri, Dec 19, 2008 at 7:10 PM, firewall <[email protected]> wrote:
>> Hi all, I'm currently working on a simple client/server application using
>> Java RMI. At the moment I have the client servlet communicating ok with
>> the
>> server. For instance, if a user enter's their name on the client, it's
>> sent
>> to the server and stored in memory. Now I'm trying to include a second
>> (backup) server so that the data held on the 'primary' server is
>> copied/replicated to the second server as well for fault tolerance. But I
>> haven't got a clue on how to go about this. Put another way, I'm trying
>> to
>> make RMI calls between the main server and backup server so that they
>> have
>> same data.
> 
> The primary server will just act as a client to the backup server.
> Repeat what you have already done.
> 
> 
> Cheers
> Niclas
> 
> ===========================================================================
> To unsubscribe, send email to [email protected] and include in the
> body
> of the message "signoff RMI-USERS".  For general help, send email to
> [email protected] and include in the body of the message "help".
> 
> For a list of frequently asked RMI questions please refer to:
> http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html
> 
> To view past RMI-USERS postings, please see:
> http://archives.java.sun.com/archives/rmi-users.html
> 
> 

Hi, thanks for the reply. By your post do you mean:

- the primary server should create an instance (object) of the backup server
as well an interface of the method implemented by the backup server(which
returns void since with RMI there's always a 'return' to the client).
- call the backup server's method on the object created in the primary
server
- pass it the data held on the prmary server ass a parameter

Also with such a setup, which server will be best to reply back to the
client i.e. just to display the msg sent by the client back it (an ACK if
you will).I think what I'm trying to do here is passive duplicatn.

Thanks again
-- 
View this message in context: http://www.nabble.com/RMI-data-duplication-tp21089575p21104053.html
Sent from the Java - RMI mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html