Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to set acceptor count on Server connector

I use 9.2.2.v20140723 and need to set the acceptor count on my ServerConnector. I need to set server and factories apart from the acceptor count, and realize that there is no constructor for same. There isn't a setter either on ServerConnector (or its parent hierarchy). 

Tried as configured in as well but i get an Exception on context startup "Caused by: java.lang.IllegalStateException: No suitable constructor: <New class="org.eclipse.jetty.server.ServerConnector">" 

What could i be possibly missing?


References below:

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Call name="addConnector">
      <New class="org.eclipse.jetty.server.ServerConnector">
        <Arg name="server"><Ref refid="Server" /></Arg>
        <Arg name="factories">
          <Array type="org.eclipse.jetty.server.ConnectionFactory">
              <New class="org.eclipse.jetty.server.HttpConnectionFactory">
                <Arg name="config"><Ref refid="httpConfig" /></Arg>
        <Set name="host"><Property name=""  /></Set>
        <Set name="port"><Property name="jetty.port" default="$(yjava_jetty__port:8080)"  /></Set>
        <Set name="idleTimeout">$(yjava_jetty__idleTimeout:30000)</Set>
        <Set name="acceptQueueSize">$(yjava_jetty__http_accept_count:100)</Set>
        <xi:include href="" xpointer="xpointer(/root/*)" xmlns:xi="">


Back to the top