No. As I've said, you never import the driver / connector classes
directly. You have a complete working example: Mahout. As you can see
it doesn't depend on this.

As I've also said, please read the documentation for Tomcat (or your
container). Here you go:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#JDBC_Data_Sources

This is where MySQL Connector/J is involved.

2011/2/16 Daniel Mühlbachler <[email protected]>:
> ok, thanks for your detailed answer - now I understand! :)
>
> So my problem is that I must import the MySQL Connector/J into my source
> files because I need them. The nasty thing about that is that I just need
> "import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;" in my dataSource but
> that won't work because there shouldn't be any dependencies on that because
> I must configure the web application to use/provide the connector.
> omg... Is there any example round here that shows such a configuration?
>

Reply via email to