I have a machine which has two servers running: –
- A Java web container (
Weblogic), and - A non-Java web server
obviously on two different ports 7001 and 15000.
The security policy restrictions on the server (and its network) only let us access to Java web container remotely (only its port is accessible).
I need a servlet or filter to be deployed on my Java web container which redirects certain requests to non-java web server and returns their result.
Is there any available Servlet or filter which does this?
I can upload files to non-Java web application (when accessed from the same machine). Is it possible to enable this feature by Port Mapping Servlet?
There is no standard way to do this. In other words, there is nothing in the JavaEE spec to mandate containers to provide such functionality.
You’ll have to write it on your own. I’d use a filter instead of a Servlet for that purpose.