Any findings on this topic? Not urgent for me, but would be happy to get an answer sometime.
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.
<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..
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.
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 .