private void doMain ( ) throws Exception { // Start the process this . start ( ) ; while ( true ) { // look for some terminator // attempt to read off queue // process message // TODO : Make something here, maybe watch for files? try { Thread . sleep ( 5 ) ; } catch ( Exception e ) { log . info ( "shutting down" , e ) ; break ; } } this . unregisterMBeans ( ) ; }
The real main method .