0 Replies Latest reply on Mar 23, 2010 3:40 AM by Dmitry Trunikov

    Name of a timer in a server's log

    Dmitry Trunikov Newbie

      Hi ALL,


      For my web applications which is deployed to jboss 4.2.3ga  I've got a configuration file with timers declarations as below:


      <?xml version="1.0" encoding="UTF-8"?>


          <mbean code="javax.management.timer.Timer" name="jboss:service=BatTimer"/>

      ... etc ...



      In the server.log I can see activity of the timers. Below is a sample of output:


      2010-03-23 07:14:20,431 INFO  [Timer-9] .................


      Because the app has got several timers names like Timer-XX are not informative so I would like to give them more human readable names, e.g. instead 'Timer-9' it could be 'Remove expired' or 'Send emails' etc.

      My question is -- is it possible to specify name of a timer for server log?


      Any thougts will be appreciated.


      Thank you.