To determine whether your application is using NIO JSSE or NIO OpenSSL in the conf/server.xml
configuration, you can check the following:
- NIO JSSE: If the
<Connector>
element in conf/server.xml
uses the "org.apache.tomcat.util.net.NioEndpoint"
as the className
attribute, and the sslImplementationName
attribute is not present or is set to "org.apache.tomcat.util.net.jsse.JSSEImplementation"
, then your application is using NIO JSSE.
Example:
<Connector port="8443" protocol="org.apache.tomcat.util.net.NioEndpoint"
connectionTimeout="20000"
redirectPort="8443" />
- NIO OpenSSL: If the
<Connector>
element in conf/server.xml
uses the "org.apache.tomcat.util.net.NioEndpoint"
as the className
attribute, and the sslImplementationName
attribute is set to "org.apache.tomcat.util.net.openssl.OpenSSLImplementation"
, then your application is using NIO OpenSSL.
Example:
<Connector port="8443" protocol="org.apache.tomcat.util.net.NioEndpoint"
connectionTimeout="20000"
redirectPort="8443"
sslImplementationName="org.apache.tomcat.util.net.openssl.OpenSSLImplementation" />
The key difference is the presence or absence of the sslImplementationName
attribute and its value. If the attribute is not present or is set to the JSSE implementation, it's using NIO JSSE. If the attribute is present and set to the OpenSSL implementation, it's using NIO OpenSSL.
Hope this will help you.
Terus Technology