Saturday, February 13, 2021

Re: How do we make GWT accept dynamic domain name?

If you are using GWT RPC, then I think the RequestBuilder http://www.gwtproject.org/javadoc/latest/com/google/gwt/http/client/RequestBuilder.html can be customised to point to whatever URL you need.

However, your whole situation seems odd.  As Thomas mentioned, you'd normally serve up your client code from the same server you make calls too.  If you needed to switch servers with load balancing, you'd have a router, and that would redirect your traffic whereever you need.  All done outside the control of GWT.

Eg:  I run my GWT app on Google App Engine (GAE).  GAE has servers all around the world, but GAE handles the routing for me.  I don't need anything special in GWT.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/2ba127a1-1898-4de1-87c4-d1ec54623269n%40googlegroups.com.

No comments:

Post a Comment