2 Replies Latest reply on Oct 12, 2012 8:29 AM by erasmomarciano

    Status Servlet in JBoss7

    rakeshsagar

      Hi all,

       

      In JBoss5 we had a Status Servlet bu which we could see the status of the JBoss task.

      Detailed information in this link:

       

      https://community.jboss.org/wiki/MonitoringTomcatEmbeddedInJboss

       

      Do we have a similar Servlet in JBoss7 and if yes can anyone let me know how to configure it?

       

       

      Thanks,

      Rakesh

        • 1. Re: Status Servlet in JBoss7
          erasmomarciano

          Hi

           

          I advise   you to check this url

           

          https://community.jboss.org/thread/174222

           

           

          you should use jboss-web.xml.

           

           


          • 2. Re: Status Servlet in JBoss7
            erasmomarciano

            You have to make an web-app with a jboss-web.xml instead of web.xml

             

            You can write this code

             

            <jboss-web>

                <valve>

                    <class-name>org.apache.catalina.valves.RemoteIpValve</class-name>

                    <param>

                        <param-name>protocolHeader</param-name>

                        <param-value>x-forwarded-proto</param-value>

                    </param>

                </valve>

                <valve>

                    <class-name>org.apache.catalina.valves.AccessLogValve</class-name>

                    <param>

                        <param-name>prefix</param-name>

                        <param-value>http_access_log.</param-value>

                    </param>

                    <param>

                        <param-name>suffix</param-name>

                        <param-value>.log</param-value>

                    </param>

                    <param>

                        <param-name>pattern</param-name>

                        <param-value>%h %l %u %t %r %s %b %{User-Agent}i %{JSESSIONID}c</param-value>

                    </param>

                    <param>

                        <param-name>directory</param-name>

                        <param-value>host</param-value>

                    </param>

                    <param>

                        <param-name>resolveHosts</param-name>

                        <param-value>false</param-value>

                    </param>

                </valve>

            </jboss-web>

             

            You chek in $JBOSS_HOME/bin/host