-
1. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
wdfink Nov 15, 2010 2:10 AM (in response to cqqjgn)AFAIK this configuration will not exist.
Also is is doubtful whether this is a useful configuration. Because you will throttle the overall throughput.
Why you want such kind of behaviour?
-
2. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
cqqjgn Nov 15, 2010 3:14 AM (in response to wdfink)because we want to ensure that the important request occupied more threads.
for example:
assign 150 thread for http://www.abc.com/aa/xx.jsp
if other 50 threads are running ,all assigned threads are not occupied, a new request coming . this request must wait . while non-assigned threads have a free thead, handle this request.
-
3. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
cqqjgn Nov 15, 2010 3:24 AM (in response to wdfink)AFAIK, configuration files can not solve this problem.
perhaps, i will develop some mbean servers, or rewrite some interface implementation.
-
4. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
hifly81 Nov 15, 2010 3:28 AM (in response to cqqjgn)does it make sense in a web app to prioritize requests considering urls?
-
5. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
welle Nov 15, 2010 3:34 AM (in response to cqqjgn)You could implement such functionality in a Tomcat Valve. Just make sure you really get the thread handling correct
A good idea would be to also add a MBean so you can look into the Valve and perhaps reset/change the settings in runtime easily.
-
6. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
welle Nov 15, 2010 3:36 AM (in response to welle)....a Valve could at least quickly throw a 500 for unwanted connection...
-
7. Re: in jboss5.1.0GA, how assign thread in thread pool for different url request
cqqjgn Nov 15, 2010 4:47 AM (in response to welle)thanks, i plan to implement the valve .and i try to add a mbean .