users@glassfish.java.net

RE: RE: Error Connecting To MySQL

From: Manfred Riem <mriem_at_manorrock.org>
Date: Tue, 12 Aug 2008 22:19:50 -0600

Why are you doing jdbc/OracleTestPool if you are using the Mysql driver?

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Tuesday, August 12, 2008 10:22 PM
To: users_at_glassfish.dev.java.net
Subject: Re: RE: Error Connecting To MySQL

Hi,
I am using Mysql driver mysql-connector-java-5.1.6-bin. My code where error occurs is
   
[i] DataSource pool=(DataSource)env.lookup("jdbc/OracleTestPool");[/i]
DataSource is of type
import javax.activation.DataSource;
while the datasource returned is of type 'com.sun.gjc.spi.jdbc30.DataSource30'.
Any idea as to which datasource to use?
Thanks & Regards
[Message sent by forum member 'ajaych' (ajaych)]

http://forums.java.net/jive/thread.jspa?messageID=292942

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net