I don't believe OpenJPA does this automatically right now. It sounds promising to me though and would make for a good feature to add.
-mike On Thu, Mar 5, 2009 at 2:30 PM, Fernando Padilla <[email protected]> wrote: > Have you heard of this? > > > http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-replication-connection.html > > I was wondering if OpenJPA was good at calling the Connection.setReadOnly() > method as appropriate ( true when new connection, false once transaction is > started )?? > > If OpenJPA did so, then anyone could use the Mysql Replication Connector, > and get some easy distribution of read queries to replicants, without any > application changes.. >
