File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

monitoring sql's using JAMon

 
ash chowdary
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. am trying to use JAMon to monitor my sql's.....do i need to override doFilter() method on JAMonFilter in order to monitor my sql's?...i've done like this. is it correct implementation?
 
steve souza
Ranch Hand
Posts: 862
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the jamon jdbc proxy driver? That is the easiest way to monitor your sql with jamon.

http://jamonapi.sourceforge.net/#WhatsNew22
 
steve souza
Ranch Hand
Posts: 862
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you do it your way there is no need to reimplement the jamon servlet filter. Just put yours in the chain before it and monitor the db connection that way. Also, once you have a monitored connection there is no reason to keep calling monitor on it. I believe jamon checks first and won't remonitor an already monitored connection though.
 
ash chowdary
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so you want me to use jamon jdbc proxy connection in my application? meaning


get this connection and use it in my application??
 
steve souza
Ranch Hand
Posts: 862
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but it would be better not to do this in code, but make it a property that can be changed. If you don't have this then you can put it in your code that returns connections.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic