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
http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/plain/jetty-server/src/main/config/etc/jetty-http.xml
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?
RegardsMonish
References below:
http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-server/9.2.2.v20140723/org/eclipse/jetty/server/ServerConnector.java#ServerConnector.%3Cinit%3E%28org.eclipse.jetty.server.Server%2Corg.eclipse.jetty.server.ConnectionFactory[]%29
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Call
name="addConnector"> <Arg> <New
class="org.eclipse.jetty.server.ServerConnector"> <Arg
name="server"><Ref refid="Server" /></Arg> <Arg name="factories">
<Array type="org.eclipse.jetty.server.ConnectionFactory"> <Item>
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
<Arg name="config"><Ref refid="httpConfig" /></Arg> </New>
</Item> </Array> </Arg> <Set
name="host"><Property name="jetty.host" /></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="jetty-connector-custom.xml.yin" xpointer="xpointer(/root/*)"
xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:fallback>
</xi:fallback> </xi:include> </New> </Arg> </Call>
</Configure>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users