adding Listener to JAMonDataSource's monitor

  • Hi,

    Thanks for developing JAMon API, we are using it to debug our performance issues and results are quite impressive.

    recently we been trying to perform some JDBC profiling to write long running SQL's to log file using JAMON listeners. After looking into code we realized that all JAMonDataSource monitors are created as inner classes and don't support any methods to add custom listeners. Is there any reason all these monitors are declared as inner classes. do you have any plans to expose them as regular outer classes to accept listeners.


  • Steve Souza
    Steve Souza

    Probably no longer an issue, but if this is still important to you can you elaborate?  You should be able to do what you request by adding a listener via this method:

    JAMonListenerFactory.(JAMonListener jamonListener)