Hi,

i figured out how to use the default DataSource with MySQL:

<Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/mysql">
<parameter> <name>user</name><value>root</value> </parameter>
<parameter> <name>password</name><value></value> </parameter>
<parameter> 
<name>driverClassName</name><value>org.gjt.mm.mysql.Driver</value></parameter>
<parameter> <name>driverName</name><value>jdbc:mysql://localhost/maxbahr</value> 
</parameter>
</ResourceParams>

But i wonder how i can use the MysqlDataSource class and i wonder where is the real 
need to
use the MysqlDataSource class.

With this scenario however, is there a connection pooling implied? For me it seems that
when i do DataSource.getConnection() i just get a normal MySQL connection as when i do
classForName(Driver) or?


---
greetings from
Marc Logemann
Homebase @ www.logemann.info


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to