Re: Possible to forward a request to another server?

2004-05-27 Thread David Crooke
You may want to look at plugging it in using an AJP connector, which is 
a webserver plugin which talks to your Tomcat JVM across TCP/IP using a 
proprietary protocol. I've only done this with Apache, but they 
apparently exist for IIS and iPlanet too.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
Wendell Holmes wrote:
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?
Thanks 

Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


--
David Crooke, Chief Technology Officer
Convio Inc. - the online partner for nonprofits
11921 N Mopac Expy, Austin TX 78759
Tel: (512) 652 2600 - Fax: (512) 652 2699

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Possible to forward a request to another server?

2004-05-27 Thread None None
In simplest terms, a response forward sends control to something in the same 
context and the forwarded, a response rediect can go to something outside 
the context.  The technical difference is that a forward is done entirely on 
the server, wheras a redirect sends the redirect command to the client 
(along with the address to redirect to), and the client (read: the browser) 
calls the new address, hence it can be any address you want.


From: Wendell Holmes <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Possible to forward a request to another server?
Date: Thu, 27 May 2004 11:48:39 -0600
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to 
an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?

Thanks
Wendell Holmes, MCSE
Education Logistics, Inc.
406 728-0893 ext. 2107
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Possible to forward a request to another server?

2004-05-27 Thread Tim Funk
Look at JSTL's  tag. If you don't do posts (or images) - it might 
be enough of a quick kludge.

For example, call this page cowbell.jsp:
--
<%@ taglib uri="http://java.sun.com/jstl/core/c.tld"; prefix="c" %>
http://otherserver${pageContext.request.requestURI}"/>
--
Then in web.xml:
 
fever
/WEB-INF/cowbell.jsp
  
 
fever
/*
  
The poor man's proxy in a quick webapp.
-Tim
Wendell Holmes wrote:
Is it possible to forward a request from one Tomcat server to another?  I
looked at the API's and it seems to say the resource must be located on the
same server and in the same servlet context.  I'm needing to have some way
to forward http requests from an external IIS web server to an internal
tomcat server.  Basically, I just want to be able to do the equivalent to an
Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a servlet
to wrap the original request and forward on?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Possible to forward a request to another server?

2004-05-27 Thread Wendell Holmes
Thanks, Yoav.

I will try to write something to wrap the request.  The streaming back part
answers my question about how to handle the response.

I could simply use IIS to redirect the original request, but the server
address would be unreachable for the client as only the web server would
have a route across the firewall.

Wendell

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:53 AM
To: Tomcat Users List
Subject: RE: Possible to forward a request to another server?



Hi,
Like HttpServletResponse#sendRedirect?  It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Wendell Holmes [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 27, 2004 1:49 PM
>To: '[EMAIL PROTECTED]'
>Subject: Possible to forward a request to another server?
>
>Is it possible to forward a request from one Tomcat server to another?
I
>looked at the API's and it seems to say the resource must be located on
the
>same server and in the same servlet context.  I'm needing to have some
way
>to forward http requests from an external IIS web server to an internal
>tomcat server.  Basically, I just want to be able to do the equivalent
to
>an
>Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a
servlet
>to wrap the original request and forward on?
>
>Thanks
>
>Wendell Holmes, MCSE
>Education Logistics, Inc.
>406 728-0893 ext. 2107
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible to forward a request to another server?

2004-05-27 Thread Shapira, Yoav

Hi,
Like HttpServletResponse#sendRedirect?  It's not like a forward in that
the client URL changes, but it does pass the request to another server.
Beyond that, you COULD write something that'd wrap the request, invoke
another server to handle it, and stream the response to your own client.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Wendell Holmes [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 27, 2004 1:49 PM
>To: '[EMAIL PROTECTED]'
>Subject: Possible to forward a request to another server?
>
>Is it possible to forward a request from one Tomcat server to another?
I
>looked at the API's and it seems to say the resource must be located on
the
>same server and in the same servlet context.  I'm needing to have some
way
>to forward http requests from an external IIS web server to an internal
>tomcat server.  Basically, I just want to be able to do the equivalent
to
>an
>Apache ProxyPass/ProxyPassReverse.  Could this be done by writing a
servlet
>to wrap the original request and forward on?
>
>Thanks
>
>Wendell Holmes, MCSE
>Education Logistics, Inc.
>406 728-0893 ext. 2107
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]