[undertow-dev] Threading model used for handler processing.

Jason Kania jason.kania at ymail.com
Mon Feb 1 20:41:03 EST 2016


Hi,
I am trying to create what I call a URL mapping handler that maps path and query variables from the http request to java method parameters via annotations. It is a bit like what Spring or JAX-RS does. The intent is to reduce a bunch of the boilerplate associated with validation of incoming requests, but nothing more than that.

One of the stumbling blocks I have come upon is threading model used in calling handlers. I am trying to understand if 
1) there is only meant to be a single handler shared by multiple threads such that it must handle multithreading2) the handler instances are somehow cloned.3) one handler is being assigned to a single thread at a time.

Without me diving into the code to figure this out, can someone please clarify this? To me this would be a good addition to the handler guide.
Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20160202/45989311/attachment.html 


More information about the undertow-dev mailing list