Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
103 views
in Technique[技术] by (71.8m points)

java melody - JavaMelody gives no SQL statistics (DataSource JndiObjectFactoryBean)

I haven't got any SQL statistics in JavaMelody. When I look the log. I see:

No annotated classes found for specified class/package [classpath:net/bull/javamelody/monitoring-spring.xml]

What does it mean exactly? Is my bean correct configured?

<bean id="jndiDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="${jdbc.name}" /> </bean>

And ${jdbc.name} is jdbc/XXX

JavaMelody is 1.86.0 and JRobin 1.5.9.

And web.xml is:

<filter>
        <filter-name>javamelody</filter-name>
        <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>javamelody</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
</filter-mapping>
<listener>
    <listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener>

Regards, Neda

question from:https://stackoverflow.com/questions/65920215/javamelody-gives-no-sql-statistics-datasource-jndiobjectfactorybean

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...