ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Fischer <mar...@fischer.name>
Subject Re: Exception in thread doesn't return error code to system
Date Tue, 21 Feb 2006 07:06:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Taft wrote:
> In the version of the XmlRpc library I'm using (1.2-b1), the exception
> you're getting is actually being thrown by the WebServer.run() method.
> It looks like WebServer.start() is spawning a new thread to invoke
> WebServer.run().
> 
> Therefore, you'd probably be best to override WebServer.run(). Something
> like:
> 
> class MyWebServer extends WebServer {
>   public void run() {
>     try {
>       super.run();
>     } catch (Exception e) {
>       System.exit(<n>);
>     }
>   }
> }

Thanks, that did it!

- - Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD+rvv1nS0RcInK9ARAv53AKCJhAj3XM7CR03fPNiZ8wFZ6NGqCwCeMwV7
7Rba5l3ODxVcsKyG/DxKSh4=
=JkVm
-----END PGP SIGNATURE-----

Mime
View raw message