Web App 是一个使用 c3p0 和 Hibernate 的 Struts 应用程序(没有 spring),它位于 Tomcat 6 中。Hibernate 和 c3p0 jar 都位于 {WEB_APP}/WEB-INF/lib 文件夹中。
在 Tomcat 中启用了 jmx 远程:-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate =假
当我使用 jconsole 连接到它时,我在选项卡中看不到 c3p0 MBean。
我需要在 Tomcat 或 Web 应用程序中进行任何配置吗?
谢谢!