• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Expected behaviour of server when no network connection?

 
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What would the expected behaviour of the server be when there is no network connection available on the machine and the user attempts to start the server?

I'm guessing that the server should just start up normally. From the servers point of view it doesn't care that clients on different machines cannot connect.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the server can start normally, it will do. Otherwise an exception is thrown, which is handled appropriately (if possible)
 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:If the server can start normally, it will do.



Would you expect the server to start normally on a machine that has no network connection?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't care.
 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I'm just wondering what other peoples expectation would be from an end users point of view. Definitely worth thinking about the end user when it comes to testing
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When the server is started but has no network connection, a client (end user) will get some kind of "network problem" message and will contact the service desk or the system administrator. And if you have a system administrator who disables (or forgets to enable) the network connection for a network server it's the moment to look for someone else

 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:When the server is started but has no network connection, a client (end user) will get some kind of "network problem" message and will contact the service desk or the system administrator.


This is what happens in your server if you unplug the network connection on your computer before starting the server?
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sean Keane wrote:What would the expected behaviour of the server be when there is no network connection available on the machine and the user attempts to start the server?



Well, in this case, the server will start normally, but in thesis, it will only be possible to connect to it from the same machine. For instance, if I start my server without network connections, it will start normally, but, since there are no network connections available, no other computers will be able to connect to it. Now, if the client looks for a server and there is no network connections available, you are gonna get a RemoteException. You can then handle it like this:

 
Sean Keane
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roberto Perillo wrote:

Sean Keane wrote:What would the expected behaviour of the server be when there is no network connection available on the machine and the user attempts to start the server?



Well, in this case, the server will start normally,



Mine does too. I guess this is ok. It's just one of the scenarios I considered as part of my testing.


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic