Spring Framework
  1. Spring Framework
  2. SPR-5167

Support for Tomcat's CometEvent enabled beans

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      As tomcat6 introduced support for even longer lived http connections for the purposes of implementing "reverse Ajax" (a design where clients open a connection to the server and then can use it to receive notifications, send user interactions etc.) I'd like to know if there are any plans for implementing "comet" kind of support in spring mvc?

      As it is not part of any official specification I'm not sure if people are willing to support this very vendor specific extension at all, but then again, patterns requiring support for long lived http-connections might become more and more popular as everyone is buzzing of Ajax.

      Apache Tomcat 6.0 when ran using APR support (native libraries) or Http11NioProtocol test if any of the defined servlets implement the interface CometProcessor [1] and if they do their event(CometEvent) will be used in favor of the normal servlet api's service(ServletRequest, ServletResponse). More information on the AIO features of tomcat 6 can be found at [2].

      So what I thought to suggest is creating CometProcessor version of DispatcherServlet, perhaps even a subclass of it to be used as a baseclass for all "vendor-specific" apis there are (until a standard is produced). This would be necessary (instead of simply implementing CometProcessor in DispatcherServlet) as implementing the CometProcessor interface disables the normal Servlet methods.

      Any ideas? Or has this already been implemented?

      [1] http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/CometProcessor.html
      [2] http://tomcat.apache.org/tomcat-6.0-doc/aio.html

        Issue Links

          Activity

          Hide
          Juergen Hoeller added a comment -

          Support for Comet events is certainly under consideration. There seem to be different opinions about the programming model, between Tomcat 6 , Jetty 6 and WebLogic 10. This will be consolidated in the Servlet 3.0 spec, under the Java EE 6 umbrella. However, that's still a while away... We have a general focus on Ajax and related topics in Spring 3.0, so this will be researched again in that timeframe (pre EE 6). We might eventually decide to wait for Servlet 3.0, though.

          Juergen

          Show
          Juergen Hoeller added a comment - Support for Comet events is certainly under consideration. There seem to be different opinions about the programming model, between Tomcat 6 , Jetty 6 and WebLogic 10. This will be consolidated in the Servlet 3.0 spec, under the Java EE 6 umbrella. However, that's still a while away... We have a general focus on Ajax and related topics in Spring 3.0, so this will be researched again in that timeframe (pre EE 6). We might eventually decide to wait for Servlet 3.0, though. Juergen

            People

            • Assignee:
              Juergen Hoeller
              Reporter:
              Joonas Koivunen
              Last updater:
              Trevor Marshall
            • Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                5 years, 31 weeks, 3 days ago

                Time Tracking

                Estimated:
                Original Estimate - 5d
                5d
                Remaining:
                Remaining Estimate - 5d
                5d
                Logged:
                Time Spent - Not Specified
                Not Specified