How to track all the requests to a method of a java class

Hello,

I am using a static method called getConnection() in OS3Connection.java. This is the dao I used to get database connection from any DAO. Now I have to track all the requests made to this method (OS3Connection.getConnection()) i.e from which DAO this method is called ..... etc...... Is this possible.....

Isn't it possible to put a filter to a java method or to a DAO.... to track all the requests made to that particular DAO......

[458 byte] By [surekhaa] at [2007-10-3 4:51:25]
# 1
For example, you can write proxy class with required interface.
UncleSAMa at 2007-7-14 22:56:06 > top of Java-index,Desktop,Developing for the Desktop...