Hi Fernando,

Maybe it is possible to implement custom JDBCListener and/or 
TransactionListener and from within them call Connection.setReadOnly() in the 
desired places.

Greetings,
Milosz


> 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..
> 

Reply via email to