Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB5C9C8E3 for ; Mon, 29 Jul 2013 10:23:53 +0000 (UTC) Received: (qmail 91401 invoked by uid 500); 29 Jul 2013 10:23:52 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 91358 invoked by uid 500); 29 Jul 2013 10:23: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 91350 invoked by uid 99); 29 Jul 2013 10:23:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 10:23:50 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.214.51 as permitted sender) Received: from [209.85.214.51] (HELO mail-bk0-f51.google.com) (209.85.214.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 10:23:44 +0000 Received: by mail-bk0-f51.google.com with SMTP id ji1so1897639bkc.24 for ; Mon, 29 Jul 2013 03:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=6cjSWouHJK0iLrvrarDZkRblJA8iDAYMj2UZUWBAIPA=; b=Qiq49UYigFlqxidw0eK6TBS0O0dzsfhlbQLbd1L+JmSsOJWBZOXNcIMSz4o/hoEOWs Deb5gC1hlxpzqyNc6+3yIx+vWijJGnSgDk+GI/JjizGw8q9VjjSygjikQ9CdrUkWBtoM Yz6GScyO+sSKcFQDhAQT6qGJOG+lcnuxPPMZZtGUOjNZm73N0QspRjT0WKvYOAEhUHfr r3d+CrctaSPegXukrJp0LEulffaXr/YFjt64xCODQmPfMbGnUZZdWIVvfqNjrXUBlX6o et9qVMC2OYYRurNMMYpXqtIbf1E9jeKaaHaFIopvc9VuBL2sqVZVMez8YRdA3U0+mBF4 H1TQ== MIME-Version: 1.0 X-Received: by 10.204.59.193 with SMTP id m1mr2151719bkh.124.1375093404465; Mon, 29 Jul 2013 03:23:24 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.205.122.78 with HTTP; Mon, 29 Jul 2013 03:23:24 -0700 (PDT) In-Reply-To: <1374859438469-4669800.post@n4.nabble.com> References: <1374592713200-4669616.post@n4.nabble.com> <1374859438469-4669800.post@n4.nabble.com> Date: Mon, 29 Jul 2013 12:23:24 +0200 X-Google-Sender-Auth: f5To_xPbelwHDydHO5-pb0AfC8Y Message-ID: Subject: Re: How do you configure anonymous access for REST API? From: Dejan Bosanac To: "dev@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a11c37a6ee83acf04e2a3e101 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c37a6ee83acf04e2a3e101 Content-Type: text/plain; charset=ISO-8859-1 Hi, ActiveMQ servlet uses the body of the post request that is sent. As far as I can see the only check we do is that request is text/xml, so that maybe an issue for you? Regards -- Dejan Bosanac ---------------------- Red Hat, Inc. FuseSource is now part of Red Hat dbosanac@redhat.com Twitter: @dejanb Blog: http://sensatic.net ActiveMQ in Action: http://www.manning.com/snyder/ On Fri, Jul 26, 2013 at 7:23 PM, jersey355 wrote: > Thanks Dejan, that worked. > > My listener on the consumer side is now able to see messages from my > producer app via the REST API, but for some reason the messages are coming > across empty (meaning TextMessage.getText() returns null). > > I created my own HTTP interface, which simply takes the body of the HTTP > message and sends it to activemq via JMS. This works perfectly, and allows > me to retrieve the text from the HTTP body without any problems. > > If I simply point my producer to activemq's REST URL, I get the empty > messages. > > Any thoughts? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-do-you-configure-anonymous-access-for-REST-API-tp4669616p4669800.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > --001a11c37a6ee83acf04e2a3e101--