5 Replies Latest reply on May 16, 2011 7:39 AM by godoy

    Jboss Log/JMX

    godoy

      Is there any MBean that allows me to access the server log Jboss 4.2 via JMX?

      Thanks.

        • 1. Jboss Log/JMX
          peterj

          No, but it is not that difficult to write a servlet that does this.

          • 2. Jboss Log/JMX
            godoy

            you have an example of how to do this with servlet?

            • 3. Jboss Log/JMX
              godoy

              Please reply me

              • 4. Jboss Log/JMX
                peterj

                I used to have one that did this, but it was ages ago. If I find it I'll post it. But the servlet was very simple: it used the jboss.server.log.dir system property to get to the server/xxx/log directory, and then scanned the directory for log files (you could also just look for "server.log"). Then open it as a file and read it, converting it to HTML to output. The one I had listed the last 100 lines and provided navigation to move forward and backwards through the file (essentially, it took a starting line number and line count as parameters).

                • 5. Jboss Log/JMX
                  godoy

                  Thanks a lot.