This one time, at band camp, Mark Seveska said:
MS>hello,
MS>I am trying to connect to mysql through the DataSource interface. The reason
MS>for this is because I am
MS>writing my own connection pooling mechanism and will be using the DataSource
MS>interface in my connection pool code. I was wondering if anyone had
MS>experience with this. When I try to connect to MySql's MysqlDataSource class
MS>and My config file looks like this:
MS>
MS><!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version
MS>1.0//EN"
MS> "http://castor.exolab.org/jdo-conf.dtd">
MS><database name="test" engine="mysql" >
MS> <data-source class-name="org.gjt.mm.mysql.MysqlDataSource">
MS> <param server-name="localhost" port-number="" database-name="test"
MS> user="root" password="" />
MS> </data-source>
MS> <mapping href="mapping.xml" />
MS></database>
Mark,
I'm just doing this off the top of my head, so bear with me. I
believe the following will work:
<database name="test" engine="mysql">
<data-source class-name="org.gjt.mm.mysql.MysqlDataSource">
<param name="user" value="root" />
<param name="password" value="" />
</data-source>
<mapping href="mapping.xml" />
</database>
Let me know if you have additional trouble.
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev