Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58225DA5D for ; Thu, 13 Dec 2012 14:47:39 +0000 (UTC) Received: (qmail 4215 invoked by uid 500); 13 Dec 2012 14:47:39 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 3618 invoked by uid 500); 13 Dec 2012 14:47:34 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 3574 invoked by uid 99); 13 Dec 2012 14:47:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 14:47:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 14:47:30 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 86C6323889BF; Thu, 13 Dec 2012 14:47:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1421317 - in /activemq/activemq-apollo/trunk: apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/ apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ apollo-website/src/documentation/ Date: Thu, 13 Dec 2012 14:47:10 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121213144710.86C6323889BF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Thu Dec 13 14:47:09 2012 New Revision: 1421317 URL: http://svn.apache.org/viewvc?rev=1421317&view=rev Log: Update the destination prefixes used by Apollo to be more consistent with the settings used by ActiveMQ 5.x. Modified: activemq/activemq-apollo/trunk/apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/AmqpProtocolHandler.scala activemq/activemq-apollo/trunk/apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ApolloAdmin.java activemq/activemq-apollo/trunk/apollo-website/src/documentation/amqp-manual.md Modified: activemq/activemq-apollo/trunk/apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/AmqpProtocolHandler.scala URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/AmqpProtocolHandler.scala?rev=1421317&r1=1421316&r2=1421317&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/AmqpProtocolHandler.scala (original) +++ activemq/activemq-apollo/trunk/apollo-amqp/src/main/scala/org/apache/activemq/apollo/amqp/AmqpProtocolHandler.scala Thu Dec 13 14:47:09 2012 @@ -60,11 +60,11 @@ object AmqpProtocolHandler extends Log { val WAITING_ON_CLIENT_REQUEST = () => "client request" val DEFAULT_DESTINATION_PARSER = new DestinationParser - DEFAULT_DESTINATION_PARSER.queue_prefix = "/queue/" - DEFAULT_DESTINATION_PARSER.topic_prefix = "/topic/" - DEFAULT_DESTINATION_PARSER.dsub_prefix = "/dsub/" - DEFAULT_DESTINATION_PARSER.temp_queue_prefix = "/temp-queue/" - DEFAULT_DESTINATION_PARSER.temp_topic_prefix = "/temp-topic/" + DEFAULT_DESTINATION_PARSER.queue_prefix = "queue://" + DEFAULT_DESTINATION_PARSER.topic_prefix = "topic://" + DEFAULT_DESTINATION_PARSER.dsub_prefix = "dsub://" + DEFAULT_DESTINATION_PARSER.temp_queue_prefix = "temp-queue://" + DEFAULT_DESTINATION_PARSER.temp_topic_prefix = "temp-topic://" DEFAULT_DESTINATION_PARSER.destination_separator = "," DEFAULT_DESTINATION_PARSER.path_separator = "." DEFAULT_DESTINATION_PARSER.any_child_wildcard = "*" @@ -169,7 +169,12 @@ class AmqpProtocolHandler extends Protoc throw new Break() } - def amqp_error(name: String = "", message: String = "") = new EndpointError(name, message) + def amqp_error(name: String = "", message: String = "") = { + if ( name==null || message == null ) { + println("crap") + } + new EndpointError(name, message) + } def suspend_read(reason: => String) = { waiting_on = reason _ Modified: activemq/activemq-apollo/trunk/apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ApolloAdmin.java URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ApolloAdmin.java?rev=1421317&r1=1421316&r2=1421317&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ApolloAdmin.java (original) +++ activemq/activemq-apollo/trunk/apollo-amqp/src/test/scala/org/apache/activemq/apollo/amqp/joram/ApolloAdmin.java Thu Dec 13 14:47:09 2012 @@ -123,7 +123,7 @@ public class ApolloAdmin implements Admi public void createQueue(String name) { try { - context.bind(name, new QueueImpl("/queue/"+name)); + context.bind(name, new QueueImpl("queue://"+name)); } catch (NamingException e) { throw new RuntimeException(e); } @@ -131,7 +131,7 @@ public class ApolloAdmin implements Admi public void createTopic(String name) { try { - context.bind(name, new TopicImpl("/topic/"+name)); + context.bind(name, new TopicImpl("topic://"+name)); } catch (NamingException e) { throw new RuntimeException(e); } Modified: activemq/activemq-apollo/trunk/apollo-website/src/documentation/amqp-manual.md URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-website/src/documentation/amqp-manual.md?rev=1421317&r1=1421316&r2=1421317&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-website/src/documentation/amqp-manual.md (original) +++ activemq/activemq-apollo/trunk/apollo-website/src/documentation/amqp-manual.md Thu Dec 13 14:47:09 2012 @@ -45,8 +45,8 @@ following configuration attributes: The amqp configuration element can also be used to control how the destination headers are parsed and interpreted. The supported attributes are: -* `queue_prefix` : Defaults to `/queue/` -* `topic_prefix` : Defaults to `/topic/` +* `queue_prefix` : Defaults to `queue://` +* `topic_prefix` : Defaults to `topic://` * `path_separator` : Defaults to `.` * `destination_separator` : Defaults to `,` * `any_child_wildcard` : Defaults to `*` @@ -93,8 +93,8 @@ can reconnect and consume the queued mes at a later time. If you want to send or subscribe to a queue, topic, or durable -subscription the AMQP address should be prefixed with `/queue/`, -`/topic/` or `/dsub/` respectively. +subscription the AMQP address should be prefixed with `queue://`, +`topic://` or `dsub://` respectively.