activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r939890 - in /websites/production/activemq/content: cache/main.pageCache rest.html
Date Thu, 12 Feb 2015 05:21:02 GMT
Author: buildbot
Date: Thu Feb 12 05:21:02 2015
New Revision: 939890

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/rest.html

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/rest.html
==============================================================================
--- websites/production/activemq/content/rest.html (original)
+++ websites/production/activemq/content/rest.html Thu Feb 12 05:21:02 2015
@@ -166,7 +166,15 @@ curl -XGET http://admin:admin@localhost:
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[wget
--user admin --password admin --auth-no-challenge http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost]]></script>
 </div></div><p>or to be more specific, total consumer count with</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[wget
--user admin --password admin --auth-no-challenge http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/TotalConsumerCount]]></script>
-</div></div><p>For more information on Jolokia protocol, see its reference
manual. An API like this makes it easy to script monitoring and management operations against
the broker, see also&#160;<a shape="rect" href="how-can-i-monitor-activemq.html">How
can I monitor ActiveMQ</a>?</p></div>
+</div></div><p>For more information on Jolokia protocol, see its reference
manual. An API like this makes it easy to script monitoring and management operations against
the broker, see also&#160;<a shape="rect" href="how-can-i-monitor-activemq.html">How
can I monitor ActiveMQ</a>?</p><h2 id="REST-Gotcha'sandothertrivia">Gotcha's
and other trivia</h2><ol><li>Missing "body" parameter</li></ol><p
style="margin-left: 90.0px;">In the curl POST examples above, the use of "body=..." is
critical. If this is not specified in front of the message body contents, the web servlet
will attempt to read the body from the request (rather than from the -d parameter), and this
will result in the following exception:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[java.lang.IllegalStateException:
STREAMED
+at org.eclipse.jetty.server.Request.getReader(Request.java:898)
+at org.apache.activemq.web.MessageServletSupport.getPostedMessageBody(MessageServletSupport.java:347)
+at org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:126)
+...]]></script>
+</div></div><p style="margin-left: 90.0px;">However, one option in this
case would be to specify the content type explicitly:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[curl
-u admin:admin -d &quot;hello world $(date)&quot; -H &quot;Content-Type: text/plain&quot;
-XPOST http://localhost:8161/api/message?destination=queue://abc.def]]></script>
+</div></div></div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message