[ 
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.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 A destination must be specified.</title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>A destination must be specified.</pre>
<p>RequestURI=/demo/amq</p><h3>Caused 
by:</h3><pre>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)
</pre>
<p><i><small><a href="http://jetty.mortbay.org/";>Powered by 
Jetty://</a></small></i></p><br/>                                               
 
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                

</body>
</html>




> 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

        

Reply via email to