gwt + database + debugging

10 views
Skip to first unread message

rjcarr

unread,
Mar 8, 2010, 4:25:33 PM3/8/10
to Google Web Toolkit
I've been using gwt for years and years now and I greatly appreciate
how much it offers. I started using gwt way back in the 1.0 (or 1.1?)
days and things have changed greatly since then (even though my
project continues). I've updated my gwt sdk along the way, but have
typically left out a lot of the new features that have been
continually added. I'd like to start using these features, but I
don't know how.

My application uses a database connection, so whenever I needed to
test in hosted mode I'd have to use the -noserver switch. But then
gwt started embedding jetty, and then there was the eclipse plug-in,
and now the hosted mode is no longer even supported.

So ... I'm trying to figure how the "proper" way to do testing and
debugging in the gwt environment (i.e., through eclipse) when
requiring a database. I seem to be stuck putting all the pieces
together and I'd like to find some guidance into making all these
pieces work together. Ideally, I'd like to debug from eclipse
directly.

Has anyone done some sort of write-up describing a similar setup? Any
help would be greatly appreciated.

mikeds...@gmail.com

unread,
Mar 8, 2010, 4:59:44 PM3/8/10
to Google Web Toolkit
The way I do it in Eclipse is no different than any webserver
debugging. If you want to debug your client, following the standard
Google way of "Debug As Google Web Application". You'll then need to
have a separate debug running of your server, using the "remote java
application" as the choice in the Debug Configurations menu. You
throw in the project name and the port, and you're ready to go. Then
when you fire up your GWT app, you will then have to fire up a second
remote debugging session and you'll be debugging from web browser
client, up into the GWT server tier, into your pure Java database
connection classes. I don't have any write-up, but hit eclipse.org or
Eclipse help....

Later,

Shaffer

Chris Lercher

unread,
Mar 8, 2010, 5:43:08 PM3/8/10
to Google Web Toolkit
Hi,

one thing you can do, is to use Eclipse's JavaEE tools (WTP, WST).
This allows you to do automatic redeployment both for the server and
the client parts. It can be used in combination with a GWT project,
and I heard, that this will be relatively easy to achieve with the new
Google Eclipse plugins (v1.3, for which a preview is now available),
but if you want to try such a setup with the current Eclipse plugins
(1.2), it's a little bit more involved. Once you've set it up, it's
very convenient, though. You can find a step-by-step instruction here
(you'll still have to adapt it to your server):
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7ee077bd3084e745/b58b0c90f288198c

Chris

Reply all
Reply to author
Forward
0 new messages