Keep in mind, that it hot-swaps code, but doesn't rebuild the objects.
This may be confusing, because when something on the client side
changes, you typically reload the page - thereby re-initializing all
instances.

On the server side you don't do that when hot-swapping. So (at least
for me) hot-swapping of server side code works. But keep in mind, that
this is not the same as a server restart. e.g. if you change a
constructor, it won't affect already constructed instances.

Chris

On Feb 22, 6:57 pm, Rajeev Dayal <[email protected]> wrote:
> Hi Paul,
>
> Hotswapping should work if the following are true:
>
> 1) Your project's output folder is set to war/WEB-INF/classes (as all
> WAR-based projects created with GPE do)
> 2) Your GPE launch configuration uses the embedded server (i.e. not
> -noserver mode)
> 3) You run the GPE launch configuration in DEBUG mode
> 4) Your project has the "Build Automatically" option turned on
>
> Let me know if you see different results.
>
> Rajeev
>
>
>
> On Fri, Feb 19, 2010 at 3:09 AM, Paul S <[email protected]> wrote:
> > Rajeev, please elaborate on this. I thought is was just part of the
> > fact that we had to restart the server if functionality there changed.
> > Would be very nice if server code could be hot swapped. Naturally I
> > would think that changes to web.xml and so on would require a server
> > restart, but that's to be expected. So you are saying that normal Java
> > code in the server side servlets can be changed? Please give a bit
> > more instruction on how to do this (I'm using GWT 2 in Eclipse).
>
> > Thanks
> > Paul
>
> > On Feb 18, 7:27 pm, Rajeev Dayal <[email protected]> wrote:
> > > How are you restarting the server? Are you using the "Restart Server"
> > option
> > > in the Development Mode view?
>
> > > Also, if you are running your launch configuration using "Debug" (not
> > Run),
> > > and you've set Eclipse to "Build Automatically", then server-side changes
> > > should be hotswapped in most cases.
>
> > > On Thu, Feb 18, 2010 at 10:44 AM, paata <[email protected]> wrote:
> > > > Hi all,
> > > > I'm newbie on gwt.
> > > > I've eclipse gwt project with smartgwt.
>
> > > > When i make changes on client side code, changes appeard after saving,
> > > > but when i make changes on server side (change  anything into servlet
> > > > method ) it is required to restart server.
> > > > I need redeployment not server restart
> > > > Restart needs long time, approximately 3-4 minute.
> > > >  any idea?
>
> > > > regards
> > > > paata
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-web-toolkit%2Bunsubs
> > > >  [email protected]><google-web-toolkit%2Bunsubs
> > [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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

Reply via email to