| Author |
Expected behaviour of server when no network connection?
|
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
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.
|
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4355
|
|
|
If the server can start normally, it will do. Otherwise an exception is thrown, which is handled appropriately (if possible)
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
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
Bartender
Joined: Jul 19, 2004
Posts: 4355
|
|
|
I didn't care.
|
 |
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
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
Bartender
Joined: Jul 19, 2004
Posts: 4355
|
|
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
Joined: Nov 03, 2010
Posts: 581
|
|
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?
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2212
|
|
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:
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
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.
|
 |
 |
|
|
subject: Expected behaviour of server when no network connection?
|
|
|