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

amq.js should not have a dependency on prototype.js

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.0
    • 5.4.0
    • Broker
    • None

    Description

      amq.js uses a script loading technique to include behavior.js, prototype.js and _amq.js. The Behavior library is included only for the purposes of the chat client and is only GUI in nature, so that should go. Also, Prototype is included for its AJAX functionality, however everyone has their favorite javascript library and although I cut my teeth on prototype, I use jQuery now. I certainly don't want amq.js to include prototype when I have a perfectly good AJAX library already included in jQuery.

      IMHO, amq.js should include only the functionality of client-side javascript-enabled JMS. The page author should include her AJAX library of choice (prototype, dojo, jquery, mootools, etc.) and an adapter class that allows amq.js to use the particular ajax library.

      Attachments

        1. amq_js.zip
          45 kB
          Jim Cook
        2. amq.js
          7 kB
          Dan Schooler
        3. amq.js
          7 kB
          Dan Schooler
        4. amq.js
          8 kB
          Saira Gul
        5. amq_dojo_adapter.js
          3 kB
          Arjan van den Berg

        Activity

          People

            dejanb Dejan Bosanac
            oravecz Jim Cook
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: