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.
Later,
Shaffer
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