• Post Reply Bookmark Topic Watch Topic
  • New Topic

failover mechanism

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am not sure how fail over(jvm crash etc) can be handled in case of RMI applications?Is it the task of the developer to store serializable objects by writing them in a file or there is some default implementation provided by JVM?

If it is task of developer then how to do this?By writing each object into a file before writing into stream or is there any listener available?

What will happen at server and client side if an object is half transfered and network connection goes down ?

Please express your views.

regards,
ajse
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. There is no default mechanism in the language to recover from crashes or network failure partway through a transfer. Both client and server sides would get Exceptions in your example.

2. There are Java architectures for unreliable networks, that has been a big push since the beginning of Java. See for example JINI and JavaSpaces and "grid" systems in general.

3. Is this just a theoretical question or do you have a real example?

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!