Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1432

Is instance of ODataHttpHandler thread-safe ?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • odata4-server
    • None

    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:

      // Get registered handler
      final ODataHttpHandler handler = ODataHttpHandlerProvider.getHandler();
      // Let the handler do the work
      handler.process(req, resp);

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.houst Marek Houst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: