Re: Is jdbc replication driver slower than normal jdbc driver ?
Posted by: jongse park
Date: December 03, 2015 01:13AM

connection.xml;

<database>
<vendor>mysql</vendor>
<export-name>Mysql4</export-name>
<data-source-class-name>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</data-source-class-name>
<data-source-type>ConnectionPoolDataSource</data-source-type>
<user>XXXDB</user>
<password>XXXDB</password>
<login-timeout>10</login-timeout>
<stmt-query-timeout>10000</stmt-query-timeout>
<property>
<name>URL</name>
<type>java.lang.String</type>
<value>jdbc:mysql:replication://125.XXX.XXX.XXX:3306,125.XXX.XXX.XXX:3306,125.XXX.XXX.XXX:3307, /XXXDB?useUnicode=true&amp;characterEncoding=utf8&amp;roundRobinLoadBalance=true&amp;autoReconnectForPools=true&amp;autoReconnect=true</value>
</property>
<connection-pool>
<pooling>
<min>1</min>
<max>10</max>
<step>1</step>
<period>3600000</period>
</pooling>
<check-query>/* ping */ SELECT 1</check-query>
</connection-pool>
</database>
</data-source>


what's wrong with this code?

Options: ReplyQuote


Subject
Written By
Posted
Re: Is jdbc replication driver slower than normal jdbc driver ?
December 03, 2015 01:13AM


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.