Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 30823 invoked from network); 16 Apr 2010 17:15:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Apr 2010 17:15:51 -0000 Received: (qmail 44150 invoked by uid 500); 16 Apr 2010 17:15:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 44112 invoked by uid 500); 16 Apr 2010 17:15:51 -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 44103 invoked by uid 99); 16 Apr 2010 17:15:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 17:15:51 +0000 X-ASF-Spam-Status: No, hits=-1301.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 17:15:49 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3GHFTD7005572 for ; Fri, 16 Apr 2010 13:15:29 -0400 (EDT) Message-ID: <28415470.991271438129437.JavaMail.jira@thor> Date: Fri, 16 Apr 2010 13:15:29 -0400 (EDT) From: "Mark Gellings (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=58914#action_58914 ] Mark Gellings commented on AMQ-1377: ------------------------------------ Hello. I'm trying to get this to work but can't so far. Using fiddler, when I post to "http://wamqdev1:10201/demo/amq" request body of "destination=topic://t1&message=message&type=send" I get the response below. Anyone have any ideas? The topic does exist. Error 500 A destination must be specified.

HTTP ERROR: 500

A destination must be specified.

RequestURI=/demo/amq

Caused by:

java.lang.UnsupportedOperationException: A destination must be specified.
	at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:195)
	at org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:300)
	at org.apache.activemq.web.WebClient.send(WebClient.java:214)
	at org.apache.activemq.web.MessageListenerServlet.doPost(MessageListenerServlet.java:214)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
	at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Powered by Jetty://





















> 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. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira