Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.0
    • Component/s: comet
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      122

      Description

      Comet can be easily used as a messages bus, where simple http request can be
      used to subscribe and publish to a topic, like:

      http://localhost:8080/your_application/messagesBus?cometTechnique=long_polling&subscribe=chat

      and then

      http://localhost:8080/your_application/messagesBus?publish=chat&message="comet
      is quite simple"

      The implementation should be based on a Servlet so it can be bundled in any
      Comet based application.

        Activity

        Hide
        jfarcand added a comment -

        Adding trunk/modules/bundles/messagesbus
        Adding trunk/modules/bundles/messagesbus/pom.xml
        Sending trunk/modules/bundles/pom.xml
        Sending trunk/modules/comet/pom.xml
        Sending
        trunk/modules/http-servlet/src/main/java/com/sun/grizzly/standalone/servlet/ServletLauncher.java
        Adding trunk/modules/messages-bus
        Adding trunk/modules/messages-bus/pom.xml
        Adding trunk/modules/messages-bus/src
        Adding trunk/modules/messages-bus/src/main
        Adding trunk/modules/messages-bus/src/main/java
        Adding trunk/modules/messages-bus/src/main/java/com
        Adding trunk/modules/messages-bus/src/main/java/com/sun
        Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly
        Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus
        Adding
        trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBus.java
        Adding
        trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBusCometHandler.java
        Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone
        Adding
        trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus
        Adding
        trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus/Main.java
        Adding trunk/modules/messages-bus/src/main/resources
        Adding trunk/modules/messages-bus/src/main/resources/WEB-INF
        Adding trunk/modules/messages-bus/src/main/resources/WEB-INF/web.xml
        Sending trunk/pom.xml
        Adding trunk/samples/messagesbus
        Adding trunk/samples/messagesbus/messagesbus-jmaki
        Adding trunk/samples/messagesbus/messagesbus-jmaki/pom.xml
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples/messagesbus
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples/messagesbus/JMakiMessagesBus.java
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/META-INF
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/META-INF/MANIFEST.MF
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/classes
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib/ajax-wrapper-comp-1.0.jar
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib/org.json-0.0.1.jar
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/web.xml
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/favicon.ico
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/glue.js
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/images
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/images/jmaki-seal.png
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/index.html
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/jmaki-standard-no-sidebars.css
        Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/config.json
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images/bg-banner.jpg
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images/bg-gradient.gif
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/theme.css
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.css
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.htm
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.js
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images/blank.gif
        Adding (bin)
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images/flickr-word.jpg
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/jmaki.js
        Adding
        trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/system-glue.js
        Transmitting file data ................................
        Committed revision 1082.

        Show
        jfarcand added a comment - Adding trunk/modules/bundles/messagesbus Adding trunk/modules/bundles/messagesbus/pom.xml Sending trunk/modules/bundles/pom.xml Sending trunk/modules/comet/pom.xml Sending trunk/modules/http-servlet/src/main/java/com/sun/grizzly/standalone/servlet/ServletLauncher.java Adding trunk/modules/messages-bus Adding trunk/modules/messages-bus/pom.xml Adding trunk/modules/messages-bus/src Adding trunk/modules/messages-bus/src/main Adding trunk/modules/messages-bus/src/main/java Adding trunk/modules/messages-bus/src/main/java/com Adding trunk/modules/messages-bus/src/main/java/com/sun Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBus.java Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBusCometHandler.java Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus Adding trunk/modules/messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus/Main.java Adding trunk/modules/messages-bus/src/main/resources Adding trunk/modules/messages-bus/src/main/resources/WEB-INF Adding trunk/modules/messages-bus/src/main/resources/WEB-INF/web.xml Sending trunk/pom.xml Adding trunk/samples/messagesbus Adding trunk/samples/messagesbus/messagesbus-jmaki Adding trunk/samples/messagesbus/messagesbus-jmaki/pom.xml Adding trunk/samples/messagesbus/messagesbus-jmaki/src Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples/messagesbus Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/java/com/sun/grizzly/samples/messagesbus/JMakiMessagesBus.java Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/META-INF Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/META-INF/MANIFEST.MF Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/classes Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib/ajax-wrapper-comp-1.0.jar Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/lib/org.json-0.0.1.jar Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/WEB-INF/web.xml Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/favicon.ico Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/glue.js Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/images Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/images/jmaki-seal.png Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/index.html Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/jmaki-standard-no-sidebars.css Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/config.json Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images/bg-banner.jpg Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/images/bg-gradient.gif Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/css/themes/blue/theme.css Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.css Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.htm Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/component.js Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images/blank.gif Adding (bin) trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/grizzly/words/images/flickr-word.jpg Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/jmaki.js Adding trunk/samples/messagesbus/messagesbus-jmaki/src/main/webapp/resources/system-glue.js Transmitting file data ................................ Committed revision 1082.
        Hide
        jfarcand added a comment -

        Make the timeout configurable

        Sending
        messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBus.java
        Sending
        messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus/Main.java
        Transmitting file data ..
        Committed revision 1112.

        Show
        jfarcand added a comment - Make the timeout configurable Sending messages-bus/src/main/java/com/sun/grizzly/messagesbus/MessagesBus.java Sending messages-bus/src/main/java/com/sun/grizzly/standalone/messagesbus/Main.java Transmitting file data .. Committed revision 1112.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: