Reactive Executor Tomcat
Since Camel 3.17
Deprecated since Camel 4.22
|
This component is deprecated and will be removed in a future release.
Use the default
|
The
camel-reactive-executor-tomcat
was intended for users of Apache Tomcat,
to let Camel applications shutdown cleanly when being un-deployed in Apache Tomcat.
The cross-thread
ThreadLocal
cleanup that distinguished this component from the default
ReactiveExecutor
relied on reflective access to the private
Thread.threadLocals
field.
This approach is denied by the JDK module system since JDK 17 and is incompatible with
virtual threads. Without that cleanup, this executor is functionally identical to the default.
To migrate, simply remove the
camel-reactive-executor-tomcat
dependency from your project.
Camel will automatically use the built-in
DefaultReactiveExecutor
.