What's your db config? Did you activate statement cache? Please check through jmx (jdbcinterceptors attribute, the datasource should be in openejb mbeans) Le 11 déc. 2012 02:59, "knak55" <naka...@xb4.so-net.ne.jp> a écrit :
> Thank you for your reply, Romain. > > I use eclipselink for Glassfish and OpenJPA for TomEE. > Though I tried to change the application to use the Built Time Enhancement > for the OpenJPA on TomEE, it does not seem to change much in terms of the > performance. > I am not familiar with the Enhancement feature of the OpenJPA, but as I was > able to see the following lines in the eclipse console, I think the > Enhancement must have been weaved to Entity classes. > default INFO [main] openjpa.Tool - Enhancer running on type "class A". > default INFO [main] openjpa.Tool - Enhancer running on type "class B". > default INFO [main] openjpa.Tool - Enhancer running on type "class C". > default INFO [main] openjpa.Tool - Enhancer running on type "class D". > > Incidentally each DB access call is done in a Stateless Session Bean. > > If there is anything I can do, please let me know. > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/DB-access-is-very-slow-tp4659326p4659382.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >