Carl’s investigation started when he found out that his predecessor had set up a cronjob to restart Tomcat every three hours. Carl never tracked down one specific reason why the application server needed to be restarted every three hours, but paging through code like this, he knows the problem’s in there somewhere.

   private static final byte [] TRUE = {
      (byte)'t', (byte)'r', (byte)'u', (byte)'e'
   };
   private static final byte [] FALSE = {
      (byte)'f', (byte)'a', (byte)'s', (byte)'l', (byte)'e'
   };
   
   public static byte [] toAsciiBytes(boolean v) {
       return v ? TRUE : FALSE;
   }
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!