janwesterkamp opened a new issue, #6856:
URL: https://github.com/apache/camel-quarkus/issues/6856

   ### Bug description
   
   I am using Camel Quarkus (latest/3.16.0) with REST DSL defined REST API in 
combination with some long running, blocking routes (usind JNI) when using HTTP 
PUT and in some configurations on HTTP POST too, but not on GET and HEAD. With 
(Camel) Quarkus REST switching to the reacive version of RestEasy by default, 
this generates warning exceptions about blocking thread(s).
   
   I tried to use the @Blocking annotation for the REST DSL 
configuration/definition method or using .outType(String.class) in the fluent 
API to enforce the usage of a worker thread - without success.
   I also could not find any documentation how to control the tread type in 
REST DSL, i.e. to use a worker tread or a virtual thread instead of the default 
I/O tread.
   
   Is there a way to control the thread type?
   If not, this should be fixed in my opinion, as potential workarounds like 
declaring a Jakarta EE REST API to set the return type or add the annotation 
and start Camel routes from there would be worse and switching back to RestEasy 
Classic seams to be difficult too (and would turn all my entry points to not 
make benefit of reactive behaviour or virtual threads).
   
   I think, a REST DSL way to control the entry method thread type is missing 
and/or the documentation about how to do it or at least how to work around it 
in the context of Camel Quarkus.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to