• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server mode at GUI

 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There are 3 modes expected : server, client, standalone.

When I run my application in server mode, should I provide client facilities (like reserve record, find record etc.), or should I only provide facility to configure, start and stop server?

Also, once a server is started and clients are connected to it, what will happen when server is shut down? How should clients behave? (of course, they won't be able to call any method on remote object, so I guess catching those exceptions might be a good option here).
 
Sean Keane
Ranch Hand
Posts: 582
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anayonkar Shivalkar wrote:should I only provide facility to configure, start and stop server?


Yes.

Anayonkar Shivalkar wrote:so I guess catching those exceptions might be a good option here).


Yes. You would want to handle the exception in some manner and present and user friendly message to the end user. You might not be able to tell the user that the server is down - but you could provide some sort of generic message.
 
Roel De Nijs
Sheriff
Posts: 10457
137
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean Keane wrote:but you could provide some sort of generic message.

That's what I did too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic