QoS in Tomcat?

2004-05-28 Thread Rui Zhang
Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them

Re: QoS in Tomcat?

2004-05-28 Thread Rui Zhang
(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance

Re: QoS in Tomcat?

2004-05-28 Thread Rui Zhang
Good point. I will look into that. Many thanks. Rui On Fri, 28 May 2004, Tim Funk wrote: Personally - I would run many instances of tomcat clustered to get the performance you need. It would be much more predictable to maintain. -Tim Rui Zhang wrote: Many thanks, Tim. That at least

Using OpenJMS in Tomcat Valve

2004-05-27 Thread Rui Zhang
-Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 6:45 PM To: Tomcat Users List Subject: Using JMS in Tomcat Valve Hi all, How can I configure tomcat to use JMS in its valve? I failed at the very beginning, when I tried to obtain the JNDI

RE: Using OpenJMS in Tomcat Valve

2004-05-27 Thread Rui Zhang
-Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 12:48 PM To: Tomcat Users List Subject: Using OpenJMS in Tomcat Valve Hi Filip, Thanks for your reply. I've got pass that point but am now having new problem...(I'm using OpenJMS

Using JMS in Tomcat Valve

2004-05-26 Thread Rui Zhang
Hi all, How can I configure tomcat to use JMS in its valve? I failed at the very beginning, when I tried to obtain the JNDI context, after moving the J2EE jms.jar to under server/lib. --- The Exception I got was: [main] ERROR digester.Digester - Begin

Sharing Static variables between Tomcat and Axis

2004-05-25 Thread Rui Zhang
Hi all, I have Axis running as a webapp of Tomcat, and am wondering whether I can share a static variable of a class between a Tomcat Valve and a Axis Handler? The following conceptually replicated what I tired: //In the Constructor of a Tomcat Valve ArmControl armControl = new

Re: Sharing Static variables between Tomcat and Axis

2004-05-25 Thread Rui Zhang
Sorry, the whole thing actually hung when I tried to access the methods of the returned Static variable... Cheers, Rui On Tue, 25 May 2004, Rui Zhang wrote: Hi all, I have Axis running as a webapp of Tomcat, and am wondering whether I can share a static variable of a class between

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html Just curious, why the custom Valve? Jon Rui Zhang wrote: Hi all, I'm trying to pass some info (say, as an Object) between a valve and a filter. Is anyone aware of a effective way to do this within

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
/api/index.html Just curious, why the custom Valve? Jon Rui Zhang wrote: Hi all, I'm trying to pass some info (say, as an Object) between a valve and a filter. Is anyone aware of a effective way to do this within the context of Tomcat? Many thanks. Best, Rui

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
Yes, indeed. I got around it by retrieving the info using getClass(), getField() etc. Thanks again. Rui On Fri, 21 May 2004, Carl Howells wrote: Rui Zhang wrote: Hi Jon All, Thanks for your information. It's very helpful. I've been looking at ValveContext but did not find anything

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
or virtually all your webapp ends up in common/lib. Try jarring up your info object and putting in common/lib (or common/classes). Or you could use reflection as I've just read in your reply to Ralph ;) Good weekend all, Jon Rui Zhang wrote: Jon, To answer your query, I'm using a custom

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
Maybe the failure of addHeader() is because the response has already been committed by the time it reaches the Filter? but, still, how can i pass info from a fliter back to a valve? Cheers, Rui On Fri, 21 May 2004, Rui Zhang wrote: Hi All, Thanks very much for your incisive comments

Re: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Rui Zhang
Never mind, I've found a not very tidy way around it by customizing the output stream of the response. But if anyone knows about a better way of doing it, pls let me know. Thanks. Rui On Fri, 21 May 2004, Rui Zhang wrote: Maybe the failure of addHeader() is because the response has already

Pass info between Tomcat Valve and Filter

2004-05-20 Thread Rui Zhang
Hi all, I'm trying to pass some info (say, as an Object) between a valve and a filter. Is anyone aware of a effective way to do this within the context of Tomcat? Many thanks. Best, Rui - To unsubscribe, e-mail: [EMAIL

HttpRequest.addHeader() doesn't work?

2004-05-15 Thread Rui Zhang
Hi there, I tried to use HttpRequest.addHeader() in a tomcat valve to add an additional header to the request. Right afert this, I printed out the request headers, by mapping the reqeust to HttpServletRequest. But the new header was not there. I'm using tomcat 4.1.30. Any help would be

How to wrap request/response in Tomcat valve?

2004-05-04 Thread Rui Zhang
Hi there, How can I wrap request/response captured in a Tomcat valve before passing it on? In tomcat 4.1, the wrapper classes (including RequestWrapper, HttpRequestWrapper, etc...) are all deprecated... Or is it impossible? Many thanks, Rui Oxford Univ Computing Lab

Modify request in a Vavle?

2004-05-03 Thread Rui Zhang
Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries) in a Tomcat valve? I was hoping to embed some info into the SOAP message and thus pass it to the subsequent Axis environment.. I had a look at the Request structure Tomcat valve captures, but

Re: Modify request in a Vavle?

2004-05-03 Thread Rui Zhang
Sorry, is it possible to provide a Wrapper around the captured request and do some processing while the request content is retieved from the associated InputStream? Thanks again, Rui On Mon, 3 May 2004, Rui Zhang wrote: Hi there, Is it possible to modify the content of a request (say

RE: Modify request in a Vavle?

2004-05-03 Thread Rui Zhang
Millennium Research Informatics -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:34 PM To: [EMAIL PROTECTED] Subject: Modify request in a Vavle? Hi there, Is it possible to modify the content of a request (say, the SOAP message it carries

RE: Modify request in a Vavle?

2004-05-03 Thread Rui Zhang
Hi, You can modify some things in a Valve, such as request headers. Modifying the request content itself is trickier. I haven't tried to do that in a Valve, but since tomcat is open you can always modify the connector if you're hell-bent on going this way. So, anyone has done it with a

Tomcat Filter Apache Axis ?

2004-05-03 Thread Rui Zhang
Hi there, Has anyone ever got a Tomcat Filter working with Axis? The Axis 1.1 does not support a filter.../filter in its web.xml. And if I insert the Filter into the Tomcat default web.xml, Axis even won't return its index.html page. The Filter, however, works fine with other webapps in my

Re: Tomcat Filter Apache Axis ?

2004-05-03 Thread Rui Zhang
Sorry, Axis' web.xml now recognised the filter\fliter pattern, but Axis still did not work properly. Rui On Tue, 4 May 2004, Rui Zhang wrote: Thanks. I did change it to 2.3 DTD, but it still doesn't work. Cheers, Rui Oxford Univ Computing Lab What's the XML doctype declaration

Re: Tomcat Filter Apache Axis ?

2004-05-03 Thread Rui Zhang
Thanks. I did change it to 2.3 DTD, but it still doesn't work. Cheers, Rui Oxford Univ Computing Lab What's the XML doctype declaration for the Axis web.xml? Servlet filters were introduced in servlet spec 2.3. If your doctype declaration specifies 2.2 or earlier, the DTD won't