Re: ReplicationDriver & PreparedStatement
Posted by:
david TENTE
Date: September 19, 2012 08:47AM
I have the good data for host and url, it seems that the DriverManager load first the ReplicationDriver, and then when the DriverManager wants to load the Driver, it returns a ReplicationDriver as ReplcationDriver inherits from Driver.
I suppose that is the cause but not sure.
I have found a "solution" that works but it seems not very proper.
I duplication the ip and the port of the databaseLog
I change the definition the url of the datasource :
jdbc:mysql://ip:port,ip:port/dataBaseLogName
<bean id="logDataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://ip:port,ip:port/dataBaseLogName" />
<property name="username" value="root" />
<property name="password" value="password" />
</bean>
Subject
Written By
Posted
September 13, 2012 06:37AM
September 13, 2012 09:07AM
September 13, 2012 09:34AM
September 13, 2012 09:37AM
September 13, 2012 09:42AM
September 19, 2012 08:32AM
Re: ReplicationDriver & PreparedStatement
September 19, 2012 08:47AM
September 26, 2012 03:27AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.