openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MiƂosz Tylenda <mtyle...@o2.pl>
Subject Re: Mysql Connector/J ReplicantConnection
Date Sun, 08 Mar 2009 08:14:21 GMT
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..
> 

Mime
View raw message