users@glassfish.java.net

Re: Glassfish, MySQL and _at_Resource

From: Shalini Muthukrishnan <Shalini.Muthukrishnan_at_Sun.COM>
Date: Mon, 09 Jun 2008 17:31:58 +0530

Yes ! The value for property URL should be like
jdbc:mysql://DB_HOSTNAME:3306/DATABASE_NAME
And for ConnectionPoolDataSource you might want to use
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource for
datasource classname.

And i hope the JDBC resource was created as well via the admin console.
You could find it under Resources tab.

HTH
Shalini.
glassfish_at_javadesktop.org wrote:
> Hi, did you write dbname at the end of url? The following configuration works for mine:
>
> <property name="URL" value="jdbc:mysql://localhost:3306/dbname"/>
>
> I also use javax.sql.ConnectionPoolDataSource
>
> Bilgehan
> [Message sent by forum member 'bilgehan' (bilgehan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>