> The reason is I want to override the EntityManager. OpenJPA provides its JPA API (such as EntityManagerFactory or EntityManager etc.) as a facade to its kernel which is general-purpose object management facility agnostic to JPA. Similarly the kernel talks to a datastore via a StoreManager API which is agnostic to relational database or JDBC. So if you want specific functional behavior, you should consider implementing Brokerfactory and Broker interfaces that are OpenJPA equivalent of EntityManagerFactory and EntityManager respectively. These two interfaces are implemented as JDBCBrokerfactory and BrokerImpl.
The examples of such extensions are available in OpenJPA source codebase. See openjpa-slice module (especially DistributedBrokerfactory and DistributedBrokerImpl) where similar extension works with multiple databases. ----- Pinaki Poddar Chair, Apache OpenJPA Project -- View this message in context: http://openjpa.208410.n2.nabble.com/Is-it-possible-to-override-the-default-openjpa-persistence-provider-tp7583807p7583825.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
