Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      ALlow developers to create their own instances of websocket endpoints and deploy them (singletons)

        Issue Links

          Activity

          Hide
          dannycoward added a comment -

          Also, as Rossen points out, the ServletContext in Servlet 3.0 allows registration of Servlets and Filters by instance and by type.

          Note: the 'default' mode for server websockets is to use a new instance per client connection. So will the singleton model be ok for the deploy-by-instance case ?

          Show
          dannycoward added a comment - Also, as Rossen points out, the ServletContext in Servlet 3.0 allows registration of Servlets and Filters by instance and by type. Note: the 'default' mode for server websockets is to use a new instance per client connection. So will the singleton model be ok for the deploy-by-instance case ?
          Hide
          dannycoward added a comment -

          eg seems to be ok with add getEndpointInstance() to ServerEndpointConfig.Configurator which will address this.

          Show
          dannycoward added a comment - eg seems to be ok with add getEndpointInstance() to ServerEndpointConfig.Configurator which will address this.
          Hide
          dannycoward added a comment -

          v014 allows the developer to control the instance creation of endpoints using the

          ServerEndpointConfig.Configurator.getEndpointInstance(Class<T> endpointClass) call.

          Show
          dannycoward added a comment - v014 allows the developer to control the instance creation of endpoints using the ServerEndpointConfig.Configurator.getEndpointInstance(Class<T> endpointClass) call.

            People

            • Assignee:
              dannycoward
              Reporter:
              dannycoward
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: