So I keep getting this warning from either Mahout or the server (I'm
guessing the former):

WARNING: You are not using ConnectionPoolDataSource. Make sure your
DataSource pools connections to the database itself, or database
performance will be severely reduced.

I'm not really sure why this is happening. I have the following
resource in my webapp's context.xml file. Is there anything else I
need to do enable connection pooling with a  JNDI resource?

<Resource name="jdbc/offline-local" auth="Container"
type="javax.sql.DataSource" username="root" password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/offlinedevel?autoReconnect=true&amp;cachePreparedStatements=true&amp;cachePrepStmts=true&amp;cacheResultSetMetadata=true&amp;alwaysSendSetIsolation=false&amp;elideSetAutoCommits=true"
validationQuery="select 1" maxActive="16" maxIdle="4"
removeAbandoned="true" logAbandoned="true" />

Thanks in advance.

-Salil

Reply via email to