I've on WebApp in JBoss server on Port 9944, I need one security layer above this layer, which accepts the request then internally forward(not redirect) the request to that JBoss server without any change in URL at client side, So its like I need Proxy kind of layer above my WebApp layer.
I need this kind of thing for security kind of reason.
So any request comes from browser, it will first hit on that Proxy layer then it will internally forward the request to my Jboss WebApp instance without any change in browser Address Bar.
Any idea how I can proceed?
If the proxy is in the same web application then you can use RequestDispatcher.forward() in the Servlet API.
If the proxy is in a separate web application then you'll need to open a HTTP connection to the primary application and make the request. There are a bunch of different ways to do this, including Apache HTTPClient, Spring RestTemplate, Jersey Client, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With