This is in fact possible with JRun 2.3.3, though I don't think it's
documented.
JRun has a JRunConnector servlet that extends the JRunProxyConnector class.
You can set up an alias for this servlet, such as "server2" and pass it two
init params, proxyhost and proxyport. Then this JSM will be able to send
JRPP-encoded (JRun Proxy Protocol) requests to a JCP on another JRun server.
For example:
Add a servlet alias for com.livesoftware.jrunconn.JRunConnector and
configure two init params:
proxyhost=111.111.111.11
proxyport=8081
Then configure a servlet mapping for "/server2/":
/server2/=invoker
Now you can pass invoke a RequestDispatcher.forward() or include() on
"/server/YourServlet"
Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/
> -----Original Message-----
> From: Xizhen Wang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 09, 2000 9:59 AM
> To: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology.; [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: RequestDispatcher.forward()?
>
>
> But if I use HttpServletResponse.sendRedirect(String
> location), I cannot
> forward the request to the new servlet as RequestDispatcher.forward()
> does. Is there a way to work around this?
>
> Thanks!
>
> Xizhen
>
> Nic Ferrier wrote:
> >
> > >>> Xizhen Wang <[EMAIL PROTECTED]> 08-May-00 8:44:45 PM >>>
> >
> > >Hi! Can I use RequestDispatcher.forward() to redirect to
> > >another servlet that is located on another web server?
> >
> > No.
> >
> > >I found it does not work.
> >
> > That's because it's not supposed to work.
> >
> > It is not even supposed to work for redirecting to a
> servlet inside a
> > different servlet-context on the same webserver (as you
> would know if
> > you read the docs).
> >
> > To redirect to another webserver use:
> >
> > HttpServletResponse.sendRedirect(String location)
> >
> > Nic Ferrier
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html