Can you also post the JDBC code you're comparing against?

Also, try setting the following properties:

<property name="openjpa.ConnectionRetainMode" value="always" />
<property name="openjpa.Multithreaded" value="false" />

The openjpa.ConnectionRetainMode[1] is something that we wouldn't suggest
when running in an EE environment, but it will be interesting to see how/if
that helps your numbers.

Thanks,
Rick

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

Reply via email to