On 29/10/2013 05:57, Sushil Prusty wrote:
> Hi All,
> 
> 
> In server.xml i need to setup clientauth value dynamically .Is there any
> java apace api available to set value at runtime or any other alternative
> option ?
> 
> <Connector  clientAuth="false" .......>

The behaviour varies by connector.

The BIO connector uses the value for clientAuth when the server socket
is created and doesn't update it. It looks like it should be possible to
update it dynamically but the code doesn't do that.

The NIO connector uses the value for clientAuth at the point where the
client makes a connection. Therefore dynamic updates to clientAuth (e.g.
via JMX) should take effect with the next attempted connection.

The APR connector uses a different attribute so I guess you aren't using
it. For completeness, it uses the value when the server socket is
created and doesn't update it. It might be possible to update it
dynamically but the code doesn't do that.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to