Servlet to call another Servlet?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Farce Milverk

    #1

    Servlet to call another Servlet?

    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.

    Thanks for any tips.

    Farce.


  • Oliver Wong

    #2
    Re: Servlet to call another Servlet?


    "Farce Milverk" <farcmilverk@ya hoo.comwrote in message
    news:IxHLg.3641 0$uH6.6511@twis ter.nyroc.rr.co m...
    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

    Comment

    Working...