3 Replies Latest reply on Jul 5, 2011 3:22 PM by Jesper Pedersen

    datasource interceptor?

    herb Newbie

      I need to do some sql stuff on the sql connection before the connection is delivered to module (this can be a war or ejb module).

       

      Is there a way to implement something like a datasource interceptor in AS 7? Or is there a way to put the datasoure in a datasource wrapper, so that every time getConnection() is called, the getConnection() of the warpper is called, and in the wrapper I can do the sql stuff, befroe the connection is delivered to JPA.