@ Command ( name = "Kill" ) public void kill ( ) throws DevFailed { xlogger . entry ( ) ; // do it in a thread to avoid throwing error to client new Thread ( ) { @ Override public void run ( ) { logger . error ( "kill server" ) ; try { tangoExporter . unexportAll ( ) ; } catch ( final DevFailed e ) { } finally { ORBManager . shutdown ( ) ; System . exit ( - 1 ) ; } logger . error ( "everything has been shutdown normally" ) ; } } . start ( ) ; xlogger . exit ( ) ; }
Unexport everything and kill it self