Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1243

Multiple WebClient instances

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • AGING_TO_DIE
    • None
    • None
    • Using activemq-web-demo as a test for changes in activemq-web while using the 'chat demo'. Patch created from eclipse on mactel

    • Patch Available

    Description

      Just learning about ActiveMQ and noticed, like many before I imagine, that the chat demo doesn't let you use it in different tabs/windows of a browser at once. Well, it runs, but you share the consumers in the WebClient stored in the HttpSession.

      So, why not have multiple WebClients in the Session, one for each 'rendering' of the window, meaning for each instance of amq(.js)?

      So you need a UID in HttpSession for each amq instance.

      You also need to set the amq._pollDelay to something sensible, as polling is done by GET and connections to the server are throttled by the browser.

      Hopefully the attached patch will seem resonable.

      Changes in _amq.js are set to test the new functionality;
      minimal changes to MessageListenerServlet;
      few changes to WebClient;
      added WebClientDirector to direct getting of correct WebClient instance and creating new ones.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch-trunk-2007-05-04.txt
          60 kB
          James Alan Shepherd
        2. patch-trunk-2007-05-09.txt
          75 kB
          James Alan Shepherd

        Activity

          People

            dejanb Dejan Bosanac
            northshorefiend James Alan Shepherd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified