Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Slow when server is down  RSS feed

 
Kenneth Logan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone else experience RMI slow when the database is down? For example,

1) Start server on machine 1.
2) Start client on machine 2.
3) Shut down server.
4) Try to book a room on machine 2 (client side)
5) Wait for a few minutes
6) finally get a message on the client saying "there is a database connection problem".

It just takes a while and I'm wondering if there is any way to enhance this or if this is okay for it to be slow?

Thanks,
Kenneth

 
Roel De Nijs
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I enter an invalid server name or ip, it takes also quiet some time before I got the error message. I left it that way.
 
Kenneth Logan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info Roel. This gives me some more confidence
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!