One example I can give you on my issue is load balancing.
2ndly, yes the api server maybe different from gwt, hence declaring hardcoded would cause a problem especially in fail over scenarios.
So looking at avenue where I could flip a switch either from server end or from user end completely based on what url they are serving (may not solve the 2nd issue)
On Wed, Feb 10, 2021, 7:22 PM Thomas Broyer <t.broyer@gmail.com> wrote:
This means you somehow hard code the URL into your code. GWT itself doesn't do that, so it either come from your code or a third-party.If it's coming from your code:
- why do you do that? is the client code deployed to a different domain than the APIs it calls?
- there are likely other ways of doing that (e.g. have the URL into the HTML host page, as a <meta>/<link> or a global variable in a <script>, and read it from your GWT app's onModuleLoad), but we'd need to know more about your problem first (see point above), and how you're currently addressing it (maybe you could show the portions of code where the URL is configured and then used?)
--On Wednesday, February 10, 2021 at 8:59:45 AM UTC+1 fir...@gmail.com wrote:Hi Team,I am a new beginner, i was thinking how can GWT accept dynamic domain address/url via GWT since GWT requires compile, dont wanna be compiling everytime we move servers.
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Cumty5Oge1U/unsubscribe.
To unsubscribe from this group and all its topics, 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/b9ac93e2-f883-4fbf-9554-db70177adeb7n%40googlegroups.com.
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/CA%2B2UxCGhQFTr6yVPgTnZqg71xeA85p55ruy0kH2NhWw0DMCmJw%40mail.gmail.com.
No comments:
Post a Comment