How to determine whether your http request starting from localhost is correctly forwarded

Created by Jerry Wang, last modified on Mar 09, 2015

Requirement: you are using WebIDE to run your application. The metadata request is sent by WebUDE via the following url:
How to determine whether your http request starting from localhost is correctly forwarded
And you would like to know exactly which target application server this request has been forwarded to.

Approach1

you can identify the target application server name GM6 via the neo-app.json:
How to determine whether your http request starting from localhost is correctly forwarded
Set the breakpoint on the method below in GM6 and then re-launch your application.
If the breakpoint is triggered, it could be confirmed that your http request is correctly forwarded to GM6:
How to determine whether your http request starting from localhost is correctly forwarded

Approach2: ( only works for Eclipse project )

Switch on development mode by modifying web.xml:
How to determine whether your http request starting from localhost is correctly forwarded
Then in http response header you could easily find which application server the http request has been forwarded to:
How to determine whether your http request starting from localhost is correctly forwarded

Approach3

change the destination file name on purpose, for example from GM6 to GM61:
How to determine whether your http request starting from localhost is correctly forwarded

And then it is expected to see the error message that the missing destination configuration file for GM6:
How to determine whether your http request starting from localhost is correctly forwarded
And debug when, where and how the destination file is used:

How to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwarded When you have changed the application server host name, How to determine whether your http request starting from localhost is correctly forwarded

the error changes:
How to determine whether your http request starting from localhost is correctly forwarded

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
How to determine whether your http request starting from localhost is correctly forwarded