4 Replies Latest reply on Jan 23, 2005 10:31 PM by Dilip Padhee

    JSP JSR77 MBeans and Statistics

    Yaron Zakai Or Newbie

      Hi,

      With JBoss 4.0.0, JSR77 MBeans are created only for Servlets, but not created dynamically for JSPs after they compile. The JSR77 spec does not mention JSP monitoring explicitly, but as they are compiled to Servlets - it would make sense that they will be monitored. However, there is only a single MBean created, with the name "jsp" under each web application at initialization time. I did not managed to see any MBean created after a JSP is compiled.

      So, have I missed something, or is it just a bug?

      Thanks, Yaron.

        • 1. Re: JSP JSR77 MBeans and Statistics
          Yaron Zakai Or Newbie

          Hi,

          Any findings on this topic? Not urgent for me, but would be happy to get an answer sometime.

          Yaron.

          • 2. Re: JSP JSR77 MBeans and Statistics
            Dilip Padhee Newbie

            Am not sure but if you see the web.xml file in jmx-console.war folder you can find each jsp is assigned with a servlet name.
            And all this servlets are being displayed in the jboss.management.local domain.


            ex:

            <servlet>
             <servlet-name>DisplayMBeans</servlet-name>
             <jsp-file>/displayMBeans.jsp</jsp-file>
             </servlet>
             <servlet>
             <servlet-name>InspectMBean</servlet-name>
             <jsp-file>/inspectMBean.jsp</jsp-file>
             </servlet>
             <servlet>
             <servlet-name>DisplayOpResult</servlet-name>
             <jsp-file>/displayOpResult.jsp</jsp-file>
             </servlet>
            
            
            


            But if you copy any new jsp file in this folder , there will be no MBean is being created for the jsp file.

            Thats why am also interested in this..topic..



            • 3. Re: JSP JSR77 MBeans and Statistics
              Yaron Zakai Or Newbie

              Diripu Hi,

              It seems that the simple cases work like you have described, but as soon as the web.xml file gets more complex, the JSPs are not monitored. Take a look at what happens when you deploy JBoss Duke's bank application (the J2EE example application). In this case you will get only one MBean "jsp" which reports statistics for all JSPs - which means you can't get information for a specific JSP. The web.xml here declars its JSP using a jsp-property-group.

              As for jsps that will be added to a directory - you are correct. No MBeans will be added.

              Still waiting for an answer from one of the JBoss team... This looks to me a major issue for anyone that deals with management.

              Yaron.

              • 4. Re: JSP JSR77 MBeans and Statistics
                Dilip Padhee Newbie

                Hi

                Am also looking for a answer for a JBoss team member...

                But in the Duke's application the web.xml declares its JSP using a jsp-property-group (like *.jsp). Each JSP file is not assigned with a servlet name.probably thats why no JSPs MBeans are being displayed...

                Want to know the JBoss specification....
                Means what is the criteria or when a MBean is created for a JSP/servlet .