Mantis - Resin
Viewing Issue Advanced Details
4550 trivial always 05-15-11 09:15 05-17-11 10:39
dicr  
ferg  
normal  
closed 4.0.18  
fixed  
none    
none 4.0.19  
0004550: documentation: ConnectionPoolDataSource init-param
http://caucho.com/resin-4.0/admin/database.xtp#driver [^]

Example: mysql configuration
<database>
  <jndi-name>jdbc/mysql</jndi-name>
  <driver>
    <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
    <url>jdbc:mysql://localhost:3306/dbname</url> [^]
    <user>username</user>
    <password>password</password>

    <init-param useUnicode="true"/>
  </driver>
  ...
</database>

Should be:

Example: mysql configuration
<database>
  <jndi-name>jdbc/mysql</jndi-name>
  <driver>
    <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
    <url>jdbc:mysql://localhost:3306/dbname</url> [^]
    <user>username</user>
    <password>password</password>

    <useUnicode>true</useUnicode>
  </driver>
  ...
</database>
WEB-INF/resin-web.xml:3: com.caucho.sql.DBPool.init(): <init-param> cannot
be used with a ConnectionPoolDataSource. Use the init-param key as a tag,
like <key>value</key>

There are no notes attached to this issue.