天天看点

How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )

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 forwardedApproach2: ( only works for Eclipse project )

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 forwardedApproach2: ( only works for Eclipse project )

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 forwardedApproach2: ( only works for Eclipse project )

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 forwardedApproach2: ( only works for Eclipse project )

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 forwardedApproach2: ( only works for Eclipse project )
How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )
How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )
How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )
How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )
How to determine whether your http request starting from localhost is correctly forwardedApproach2: ( only works for Eclipse project )

继续阅读