Re: Servlet to call another Servlet?




"Farce Milverk" <farcmilverk@xxxxxxxxx> wrote in message news:IxHLg.36410$uH6.6511@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Is it possible to have a Servlet on Server A call a Servlet on Server B (both running single instances of an identical webapplication) without using a Proxy setup? For example, if a request comes into Servlet (on server A) I want the servlet on server B to handle the request at address http://serverB/servlet/servletB...


The goal is to have Servlet B handle the request fielded by Server A, and have the result passed back to the client via server A. Server B is not visible to the client web browser.

You could have Servlet A masquerade as a webbrowser, making the appropriate request to Servlet B, and then return whatever it receives from servlet B back to the original client that made the request.

Also, lookup the term SOA.

- Oliver

.



Relevant Pages

  • Re: Clarification on firewall issues with Java networking APIs
    ... work properly when either the client or the server is behind a proxy unless ... A RMI server registers its service with the rmiregistry, ... assigned or tells the registry the port that it actually listen on. ... routine and the servlet can send a reply on that already established socket. ...
    (comp.lang.java.programmer)
  • Re: jboss normal client/server communication
    ... > some client side libraries for marshalling and setting up the ... > Setting up a servlet on the server and communicate directly with this ... The servlet could even emit ... > going to run in the same local area network as the server, ...
    (comp.lang.java.programmer)
  • Re: Clarification on firewall issues with Java networking APIs
    ... work properly when either the client or the server is behind a proxy unless tunneling is used and that tunneling is slow and prevents callbacks from being used. ... assigned or tells the registry the port that it actually listen on. ... routine and the servlet can send a reply on that already established socket. ...
    (comp.lang.java.programmer)
  • Trying to send XML with HTTP POST to a Servlet
    ... I am trying to send some XML stuff through HTTP POST using a Java HTTP ... client and a Servlet, and it doesn't seem to work! ... Here is my client code: ... Here is my server code: ...
    (comp.lang.java.programmer)
  • Re: Http POST requests changed to GET by proxy?
    ... between the applet and the servlet engine. ... When our applet creates a HTTP connection to the server it uses ... unknown and creates an HTTP GET request, thus doGet will be called on ...
    (comp.lang.java.programmer)