strange behavior about response object in container
Hi, I am modifying the Tomcat 4.0.4 to make it a proxy cache server. I am extending the container's (StandardHost) invoke(Request, Response) function to be able to forward a request if there is no cache for it. I use the apache commons-httpclient to implement the forwarding semantics. While I implement the transfering of data from httpclient method object to the Response object, I noticed some strange behavior regarding the Response object. What I did is first get a HttpServletResponse object reference from the Response object hresp, then I will call a loop of resp.setHeader() , then I do OutputStream os = resp.getOutputStream(); os.write(response_body_text_as_byte_array) When the origin server is another Tomcat server, it does not work, however if I comment out resp.setHeader(...), it is working (I mean the result shown in the browser) I do the forwarding inside a servlet, even with rest.setHeader(...), it still works. I wonder why is that? BTW, I am using IE 6 as browser. I feel I should do the setting of headers, they may contain cookies and other info. When I try against www.microsoft.com (url in the request), with header setting, it works, without header setting, it does not. Quite the opposite of Tomcat. When I try against www.yahoo.com, i find the same behavior as Tomcat. I wonder how it is related to the origin server, the format of their response or version? Thanks! --Zhenxin Wang DoCoMo Labs USA
make a proxy cache server out of tomcat
Hi, I am thinking of using tomcat to build a proxy cache server. When a request comes into the proxy cache server, the server checks to see if the app is deployed in the local container. If yes, the request is served by the proxy cache server. If not, the proxy cache forwards the request to the origin server and get the response. I wonder does current Tomcat code base have the request forwarding logic or not? If not, where can I get an open source java code for the request forwarding logic. Thanks! --Zhenxin Wang DoCoMo Labs USA
Re: JMS for Tomcat
I do not think Tomcat supports JMS, Tomcat is only a servlet and JSP container. --Zhenxin Wang DoCoMo Labs USA - Original Message - From: Ming Xie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:33 PM Subject: JMS for Tomcat Hi, Does anyone know if Tomcat supports JMS ? Where is the document if yes. Can I use j2ee server from Sun as message system when I use Tomcat ? Please advise. Ming CONFIDENTIALITY NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender (Information) that may be confidential and legally privileged. If you are not the intended recipient, any disclosure, copying,distribution or action taken in reliance on the Information is strictly prohibited. If you have received the Information in error,please contact the sender by reply email and destroy all copies of the original email. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and Naming
What is the role of Naming (org.apache.naming packeage) in Tomcat? Is it an essential part of Tomcat? Can the servlet container work without it? If it can be taken off, what I have to sacrifice. Thanks! --Zhenxin Wang DoCoMo Labs USA
updated architecture document
Is there an updated architecture document (or a set of documents) that explains the architecture of Tomcat 4? I only found some that seems to be out of dated. Thanks! --Zhenxin Wang DoCoMo Labs USA
MinTC, got problem while try to run java -jar mtc.jar
I downloaded the MinTC from DistribuTopia web site, and successfully built mtc.jar. When I try to run java -jar mtc.jar, I got the following error msg Exception in thread main java.lang.NoClassDefFoundError: mtcserver Looks like the mtcserver.java file generated into src directory from ant gen_demo is empty. So is the file of webapps_cks_mtcdep.java . Thanks! --Zhenxin Wang DoCoMo Labs USA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Cluster
This may be a trivial question. Within the Tomcat context, what is exactly a Cluster ? And how is it related to other architecture components such as Engine, Host, and Context? How is it can be used or specified? Thanks! --Zhenxin Wang DoCoMo Labs USA
org.apache.crimson
I noticed that there are objects in running Tomcat4.0.4 seen through a java profiler (OptimizeIt), but did not find it in the source. I wonder why? Looks like its functionality is about XML parsing. Is it because they were built into JDSK1.4? Thanks! * Zhenxin Wang * DoCoMo USA Labs
FW: Tomcat4 feature set
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] he.org] On Behalf Of Zhenxin Wang Sent: Friday, July 26, 2002 4:49 PM To: [EMAIL PROTECTED] Subject: Tomcat4 feature set Hi, Besides the obvious .html, servlet, and JSP, what are the other features supported by Tomcat4? Such as JNDI, JDBC etc. Is there a document explains the supported feature set? Thanks! Zhenxin Wang DoCoMo USA Labs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]