Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 75178 invoked from network); 12 Jan 2010 07:06:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 07:06:46 -0000 Received: (qmail 56480 invoked by uid 500); 12 Jan 2010 07:06:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 56409 invoked by uid 500); 12 Jan 2010 07:06:45 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 56399 invoked by uid 99); 12 Jan 2010 07:06:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 07:06:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 07:06:45 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F03F4234C48D for ; Mon, 11 Jan 2010 23:06:24 -0800 (PST) Message-ID: <2022965150.5951263279984980.JavaMail.jira@brutus.apache.org> Date: Tue, 12 Jan 2010 07:06:24 +0000 (UTC) From: "Arjan van den Berg (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1377) amq.js should not have a dependency on prototype.js In-Reply-To: <19573635.1188914423050.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56866#action_56866 ] Arjan van den Berg commented on AMQ-1377: ----------------------------------------- Is it on purpose that amq.js starts with a poll, even before you have the chance of setting up a listener? This usually means a client initially has to wait "timeout" seconds without having a chance of receiving something. > amq.js should not have a dependency on prototype.js > --------------------------------------------------- > > Key: AMQ-1377 > URL: https://issues.apache.org/activemq/browse/AMQ-1377 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker > Affects Versions: 5.0.0 > Reporter: Jim Cook > Fix For: 5.4.0 > > Attachments: amq.js, amq.js, amq.js, amq_dojo_adapter.js, amq_js.zip > > > 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.