Correct me if I am wrong. You have a GWT application up and running on your application server (jetty, tomcat, or similar) and now you want to move your compiled app (HTML/Javascript) to an external web server on a different domain/host. To do so you have two options:
1.) Enable CORS on your server using a servlet filter that sits in front of your GWT-RPC server services. Only downside is that CORS does not work with IE6 and IE7 at all and it only works on IE8 / IE9 if you use the XDomainRequest object instead of XMLHttpRequest. Not sure if GWT's RequestBuilder (that is used by GWT-RPC internally) already handles this (http://caniuse.com/#search=CORS) 2.) Most likely you can configure the external web server to proxy specific URL requests to your server. That means when your GWT app makes a GWT-RPC request to http://customerdomain.com/app/service , the web server can internally redirect the request to http://yourserver.com/app/service. In that case you don't need CORS because your GWT client side app doesn't even know that the data comes from your server. If you want 3rd party developers, Android/iPhone apps accessing your server, you should really think about *adding a new API* to your server that does not depend on GWT. Your GWT app can still use GWT-RPC so you dont have to rewrite it. A common way to do so ist to provide *an additional REST API using JSON/XML* that can easily be used by different non-GWT clients. That way you don't have to rewrite all the GWT serialization code for your non-GWT clients (Android/iPhone) and you don't have any trouble if you want to upgrade your GWT app to a newer GWT version (this could break GWT serialization of non-GWT clients if GWT internals have changed and your GWT serialization library, in lets say Objective-C, does not reflect these changes yet. So you need to update these non-GWT apps as well. You dont want that.). Personally I found flatpack-java promising (https://github.com/perka/flatpack-java). Hope this helps and I have understood you correctly. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9DI6dJ2CYbkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.