Missing test for "executeBatch"
Monitor Java applications - SQL, HTTP, Methods, Exceptions and more.
Brought to you by:
stevesouza
In jamonapi\src\java\com\jamonapi\proxy\JDBCMonProxy.java:
I noticed that a test for "excecuteBatch" was missing.
One of the
things that jamon helped us pinpoint, was the places
that using batch
inserts could make a big difference. But once I change
them to batch, I
no longer get the query statement recorded. The
following change
addresses that:
private boolean isExecuteQueryMethod(String
methodName) {
return "executeQuery".equals(methodName) ||
"executeUpdate".equals(methodName) ||
"execute".equals(methodName) ||
"executeBatch".equals(methodName); ===>
was missing!
}