简体   繁体   English

JavaMelody-在GlassFish v3 +中监视SQL请求和jdbc连接

[英]JavaMelody - Monitoring of sql requests and of jdbc connections in GlassFish v3+

I want to use JavaMelody to monitor the SQL requested by a Glassfish Application Server. 我想使用JavaMelody监视Glassfish应用程序服务器请求的SQL。 There are step-by-step instructions on https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#monitoring-of-sql-requests-and-of-jdbc-connections-in-glassfish-v3 , but the second step does not work for me. https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#monitoring-of-sql-requests-and-of-jdbc-connections-in-glassfish-v3有分步说明,但是第二个一步对我不起作用。

The instruction is: 指令是:

In the GlassFish admin console, rename your JDBC Resource (DataSource) from "jdbc/MyDataSource" to "jdbc/MyDataSource_uncached" for example 例如,在GlassFish管理控制台中,将JDBC资源(数据源)从“ jdbc / MyDataSource”重命名为“ jdbc / MyDataSource_uncached”

I can't find any way to edit rename the JDBC Resource. 我找不到编辑重命名JDBC资源的任何方法。

The following screenshot shows the JDBC data source tab of the Glassfish Admin console: Edit JNDI Name of a JDBC Resource 以下屏幕快照显示了Glassfish管理控制台的JDBC数据源选项卡: 编辑JDBC资源的JNDI名称

Do you know how to rename JNDI Name of a JDBC Resource? 您知道如何重命名JDBC资源的JNDI名称吗?

Indeed, there is no command in the Glassfish UI to rename the JDBC Resource. 实际上,Glassfish UI中没有命令可以重命名JDBC资源。

I have added more precision in the doc: 我在文档中添加了更多精度:

In the GlassFish admin console, rename your JDBC Resource (DataSource) from "jdbc/MyDataSource" to "jdbc/MyDataSource_uncached" for example, by creating a new identical JDBC Resource then deleting the old one 在GlassFish管理控制台中,例如, 通过创建一个相同的新JDBC资源,然后删除旧的 JDBC资源,将JDBC资源(数据源)从“ jdbc / MyDataSource”重命名为“ jdbc / MyDataSource_uncached”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM