The way OpenJPA bootstraps, persistence.xml wins over System.properties.
Pass a map like so Persistence.createEntityManagerFactory("your_pu_name",
propertyOveridesMap).
If you need to override for say test versus production, you can move your
properties from persistence.xml to openjpa.xml, see
http://openjpa.apache.org/builds/2.0.1/apache-openjpa-2.0.1/docs/manual/ref_guide_conf_specify.html
http://openjpa.apache.org/builds/2.0.1/apache-openjpa-2.0.1/docs/manual/ref_guide_conf_specify.html
--
View this message in context:
http://openjpa.208410.n2.nabble.com/How-to-override-a-property-in-persistence-xml-tp6324365p6324624.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.