title: How to use a ThrottlingFilter for Jetty in Restlet
body: <p>I would like to configure a webservice so that once the accept queue is full the service returns 503. Currently, these requests seem to just time out. </p>
  
  <p>I did set paramters like <strong>maxThreads</strong> and <strong>acceptQueuesize</strong> (as described here: <a href="http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/jetty/JettyServerHelper" rel="nofollow noreferrer"><a href="http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/jetty/JettyServerHelper" rel="nofollow noreferrer">http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/jetty/JettyServerHelper</a></a>).</p>
  
  <p>But the service does not respond with 503 once the acceptQueue is full.</p>
  
  <p>It seems jetty's ThrottlingFilter (<a href="http://www.mortbay.org/jetty/jetty-6/apidocs/index.html?index-all.html" rel="nofollow noreferrer"><a href="http://www.mortbay.org/jetty/jetty-6/apidocs/index.html?index-all.html" rel="nofollow noreferrer">http://www.mortbay.org/jetty/jetty-6/apidocs/index.html?index-all.html</a></a>) is what I'm looking for, but I don't know how to apply within my restlet service.</p>