I have the following property in persistence.xml : <property name="openjpa.ConnectionProperties" value="DriverClassName=com.mysql.jdbc.Driver,jdbcUrl=jdbc:mysql://localhost:3306/c,user=foo,password=foo,autocommit=false,automaticTestTable=testtable,idleConnectionTestPeriod=60"/>
I am trying to override this via a system property, so I have set: -Dopenjpa.ConnectionProperties=DriverClassName=com.mysql.jdbc.Driver,jdbcUrl=jdbc:mysql://localhost:3306/bar,user=bar,password=bar,autocommit=false,automaticTestTable=testtable,idleConnectionTestPeriod=60 This doesn't seem to work though. OpenJPA always seems to read the property set in persistence.xml Only if the property in persistence.xml is NOT SET does it then read the value from system property. Is this expected behaviour? If so what's the correct way to override a property? - Joel
