English 中文(简体)
Any good articles related to deploying GWT applications to production?
原标题:

Does anyone know any good articles on how to deploy Google Web Toolkit (GWT) applications to a production environment? What are the requirements? Should I use Tomcat or Jetty with or without Apache? My GWT app leverages GWT-RPC requiring it to be hosted on a JVM stack.

My current experience with deployment to production is primarily based on a Microsoft stack (IIS, ASP.NET etc).

Hope anyone can point me in the right direction,

Thanks.

最佳回答

The requirements would be any J2EE server that complies is Servlet 2.5 standard.

You don t have to install Apache, tomcat have his own web server. GWT would build for you a WAR file you should copy that file to the tomcat webapps and restart tomcat, it would deploy it automaticly. The war file will contain all the needed file.

To build the war file you have to use ant, an article here how to do

I think the ant build would create the war file, anyway zipping the war directory and changing the extension to .war is the same (WAR file are only zip files)

问题回答

GWT is primarily a client side technology. You need to decide what stack you will be developing your back end in. It could be an ASP.NET backend, it could be a simple static deployment of apache, or a full J2EE stack. It depends on what your app will be doing. When all is said and done, a GWT app is just some html and a bunch of javascript. You can serve that part from any web server.

The real question is what backend will that GWT client be talking to. What confuses the issue is that many GWT apps happen to use GWT-RPC, which means they will be written in java and thus require a java backend. But you could just as well write a GWT app that is standalone (ie no server side processing needed) or communicates with a .net app using some kind of web service interface.





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签