What happens when access a closed database server?
posted 13 years ago
I use RMI in my assignment, and I get RemoteDataImpl instance from ConnectionFactory. After connected, I closed my database server first. then continue to use remoteDataImpl instance. Guess, what happened? I got NullPointerException, why? I think it should be a RemoteException. Just because my instance is got from a remote factory?? Later, I had a test, use factory only. after I close my server, the client side got a RemoteException. Why??? I'm confused. can anybody give me a help? thanks!