[ https://issues.apache.org/jira/browse/OLINGO-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Houst updated OLINGO-1432: -------------------------------- Description: In all OData4 tutorials, fresh instance of ODataHttpHandler is created for each incoming request in HttpServlet. Is it thread-safe to create it once and reuse it? Something like: {code:java} // Get registered handler final ODataHttpHandler handler = ODataHttpHandlerProvider.getHandler(); // Let the handler do the work handler.process(req, resp);{code} was: In all OData4 tutorials, fresh instance of ODataHttpHandler is created for each incoming request in HttpServlet. Is it thread-safe to create is once and reuse it? Something like: {code:java} // Get registered handler final ODataHttpHandler handler = ODataHttpHandlerProvider.getHandler(); // Let the handler do the work handler.process(req, resp);{code} > Is ODataHttpHandler thread-safe ? > --------------------------------- > > Key: OLINGO-1432 > URL: https://issues.apache.org/jira/browse/OLINGO-1432 > Project: Olingo > Issue Type: Question > Components: odata4-server > Reporter: Marek Houst > Priority: Minor > > In all OData4 tutorials, fresh instance of ODataHttpHandler is created for > each incoming request in HttpServlet. > Is it thread-safe to create it once and reuse it? > Something like: > {code:java} > // Get registered handler > final ODataHttpHandler handler = ODataHttpHandlerProvider.getHandler(); > // Let the handler do the work > handler.process(req, resp);{code} -- This message was sent by Atlassian Jira (v8.3.4#803005)