This may sound dumb, but can you connect to the db via the command line? Also, it you don't do a cleanup in a finally block and release the connection, you will quickly run out of them :-(
Here is my mysql portion of the Resin config file:
resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="com.mysql.jdbc.Driver"/>
<init-param url="jdbc:mysql://127.0.0.1:3306/myDBName"/>
<init-param user="blah"/>
<init-param password="blah2"/>
<init-param max-connections="20"/>
<init-param max-idle-time="30"/>
</resource-ref>
Then I have a WebConstants.java file that contains the following snippet:
public static final
String DEFAULT_DATASOURCE = "jdbc/test";
Then from anywhere, can get a connection by calling WebConstants.DEFAULT_DATASOURCE = "jdbc/test";
If this doesn't work, either email me at
pridam@mindspring.com or my AOL IM is Tom365MT
Hope this helps!
Regards,
Tom Pridham
CIO
www.365MT.com