openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: JPA Profiler to Capture Queries
Date Thu, 06 Dec 2012 15:25:05 GMT
Take a look at JDBCListeners[1]


[1]
http://openjpa.apache.org/builds/latest/docs/docbook/manual.html#openjpa.jdbc.JDBCListeners

Thanks,
Rick


On Wed, Dec 5, 2012 at 6:23 PM, exabrial <exabrial@gmail.com> wrote:

> Hello Everyone!
>
> I'm trying to create a JPA Profiler for web applications. The idea is to
> capture all of the queries executed during a web  request lifecycle.
>
> I was able to get this to work with EclipseLink fairly easily, they have a
>
> http://www.eclipse.org/eclipselink/api/2.2/org/eclipse/persistence/sessions/SessionProfiler.html
> class that I could use a decorator pattern to monitor the queries executed
> on the current thread.
>
> I need a bit of help creating an adapter for OpenJPA. I need to be notified
> somehow when a query is about to be executed and when the execution is
> finished. I'm having a bit of trouble locating an API to do this inside
> OpenJPA. Can someone point me in the right direction? Ideally, I'd like to
> be able to specify something inside the JPA properties section that would
> activate the query capture.
>
> Thanks a ton guys, cheers!
> -Jonathan
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/JPA-Profiler-to-Capture-Queries-tp7582053.html
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message