You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Marek Houst (Jira)" <ji...@apache.org> on 2020/02/26 10:28:00 UTC
[jira] [Updated] (OLINGO-1432) Is instance of ODataHttpHandler
thread-safe ?
[ https://issues.apache.org/jira/browse/OLINGO-1432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Houst updated OLINGO-1432:
--------------------------------
Summary: Is instance of ODataHttpHandler thread-safe ? (was: Is ODataHttpHandler thread-safe ?)
> Is instance of 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)