On 2025/09/16 09:09:45 Mark Thomas wrote:
> On 16/09/2025 08:49, Michael Osipov wrote:
> > On 2025/09/12 14:46:44 Mark Thomas wrote:
> >> On 12/09/2025 15:33, Harri Pesonen wrote:
> >>> Thanks, currently we have option to use APR but NIO is the default.
> >>> Perhaps we drop APR and then switch to Tomcat Native 2.
> >>>
> >>> What if we have both tcnative-1.dll and tcnative-2.dll available, I guess 
> >>> that Tomcat will use tcnative-2.dll with NIO and tcnative-1.dll with APR 
> >>> ? 😊
> >>
> >> You can only load one version of Tomcat Native into the JVM at any one
> >> time. If both are present, 1.x is used in preference to 2.x.
> > 
> > Not true for 9.0.x
> 
> Which part (or parts) of the above statement are you claiming is (are) 
> not true?

This: 
https://github.com/apache/tomcat/blob/ef14a983ab626d7ca777cc1a9e79fe96b9308cd4/java/org/apache/tomcat/jni/Library.java#L31
But from 10.x+: 
https://github.com/apache/tomcat/blob/6dcdd3db93253c3599045e29b4491c4fe16c3a9e/java/org/apache/tomcat/jni/Library.java#L24

Preference depends on the version.

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

Reply via email to