Saturday, August 7, 2010

Re: Mysql Connector/J

Hi Maurice,

for the Jetty Test mode, you can indeed use WEB-INF/lib, but you also
have to add the JAR to your project's classpath in Eclipse. Then, you
can use a connection string in the form of jdbc:mysql://localhost:8889/
yourdbname

In production, I'd recommend always using a JDBC datasource in Tomcat
(you can check out the tomcat manual for details).

Hope this helps - best regards
Sebastian

On 6 Aug., 05:22, Maurice Nee <lyden...@gmail.com> wrote:
> Can someone explain to me how to get JDBC to connect to MySQL in my
> GWT project. Where do I put the mysql-connector-java jar? In war/WEB-
> INF/lib? What connection url would I have to supply to the
> DriverManager to connect to the database in development mode using the
> embedded jetty server?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate