...
In order to change the port, add other types of connectors- SSL, AJP13 - configure a request log, or change the thread pool, you need to un-pack the sar to a temporary directory, edit the META-INF/jboss-service.xml file, repack it and copy the modified sar to the JBoss deploy directory.
Enabling Statistics
Edit the META-INF/jboss-service.xml file from the sar (you'll need to unpack it first). Uncomment the following lines:
| Code Block |
|---|
<!-- Uncomment for statistics
<New id="StatsHandler" class="org.mortbay.jetty.handler.StatisticsHandler">
<Set name="handlers">
-->
<!-- Uncomment for statistics
</Set>
</New>
-->
|
Now re-jar the modified sar. You can use the StatisticsHandlerMBean to retrieve the statistics using the JMX console.
| Tip |
|---|
Using jetty-7 there is an org.eclipse.jetty.servlet.StatisticsServlet that you can configure in the jboss management webapps instead of the Tomcat org.jboss.web.tomcat.service.StatusServlet servlet. |
Configuration note about Jetty-SAR and Struts Tiles usage
...
Jetty Version | JBoss Version | JVM Version | Status |
|---|---|---|---|
6.1.0 | 4.0.5.GA | JDK 1.4 | |
6.1.1 | 4.0.5.GA | JDK 1.4 | |
6.1.2 | 4.0.5.GA | JDK 1.4 | |
6.1.3 | 4.0.5.GA | JDK 1.4 | |
6.1.4 | 4.0.5.GA | JDK 1.4 | |
6.1.5 | 4.0.5.GA | JDK 1.4 | |
6.1.6 | 4.0.5.GA | JDK 1.4 | |
6.1.6 | 4.2.0.GA | JDK 1.5 | |
6.1.8 | 4.0.5.GA | JDK 1.5 | |
6.1.12rc2 | 4.2.3 GA | JDK 1.5 | |
6.1.17 | 4.0.5.GA | JDK 1.5 | |
6.1.18 | 4.0.5.GA | JDK 1.5 | |
6.1.21 | 4.2.3.GA | JDK1.5 | |