Since both the client and server portions of GWT apps are written in Java there's no reason why you couldn't run the client portion of your app on the server. That said, there are a couple of items you should keep in mind:
1. Code that will be executed on the server side has the ability to utilize more of the JRE since it won't be run in the browser, and as such won't be limited to the classes and libraries available within the browser. 2. Client side code that expects a UI might not run correctly on the server side. 3. A model you might find more powerful is the ability to "share" code between the client and the server. For example, model objects such as Contacts or Addresses can have a common code base that that allow both the client and the server to manipulate and extract data. Therefore an update to the model doesn't require an update to both the client and server code base. - Chris On Tue, Nov 17, 2009 at 5:26 PM, Ezra <[email protected]> wrote: > Hi GWT community, > > Is it possible to have a gwt application run on the server and the > client? Basically, can a GWT app that was written for the client be > ported to run on a server? > > The benefit of using GWT would be that it is written in Java (which > can run on a server) and it can be compiled into JavaScript (which can > run on the client). Having the ability to pick where the code runs > would be a big benefit for the application I am developing. Has anyone > tried this before? Can you give me some advice? > > Thanks, > Ezra > > > > -- > > 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%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=. > > > -- 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=.
