activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saira Gul (JIRA)" <>
Subject [jira] Updated: (AMQ-1377) amq.js should not have a dependency on prototype.js
Date Thu, 12 Jun 2008 09:50:00 GMT


Saira Gul updated AMQ-1377:

    Attachment: amq.js

Hi dan
i m facing the same issue that is if the network connection drops temporarily (such as by
unplugging the network cable for a minute and then plugging it back in) the clients just stop
receiving messages and never resume until the browser is reloaded. 

i am using following amq.js file in my application 

var _AMQ_INCLUDE = {
  Version: 'AMQ JS',
  script: function(libraryName) {
    document.write('<script type="text/javascript" src="'+libraryName+'"></script>');
  load: function() {
    var scriptTags = document.getElementsByTagName("script");
    for(var i=0;i<scriptTags.length;i++) {
      if(scriptTags[i].src && scriptTags[i].src.match(/amq\.js$/)) {
        var path = scriptTags[i].src.replace(/amq\.js$/,'');
        this.script(path + 'prototype.js');
        this.script(path + 'behaviour.js');
        this.script(path + '_amq.js');
        // this.script(path + 'scriptaculous.js');


please give me any suggestion vat should i do in this respect ao that my application works


> amq.js should not have a dependency on prototype.js
> ---------------------------------------------------
>                 Key: AMQ-1377
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 5.0.0
>            Reporter: Jim Cook
>         Attachments: amq.js, amq.js, amq.js,
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message