Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 87629 invoked from network); 24 Jul 2006 06:52:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 06:52:04 -0000 Received: (qmail 1944 invoked by uid 500); 24 Jul 2006 06:52:03 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 1932 invoked by uid 500); 24 Jul 2006 06:52:03 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 1923 invoked by uid 99); 24 Jul 2006 06:52:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 23:52:03 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jul 2006 23:52:03 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id CC15A1A981A; Sun, 23 Jul 2006 23:51:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r424932 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java Date: Mon, 24 Jul 2006 06:51:42 -0000 To: activemq-commits@geronimo.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060724065142.CC15A1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jstrachan Date: Sun Jul 23 23:51:41 2006 New Revision: 424932 URL: http://svn.apache.org/viewvc?rev=424932&view=rev Log: used the new clientIDPrefix and made the code easier to run on Java 5 Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java?rev=424932&r1=424931&r2=424932&view=diff ============================================================================== --- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java (original) +++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/test/Main.java Sun Jul 23 23:51:41 2006 @@ -54,14 +54,18 @@ broker = new BrokerService(); broker.setPersistent(false); broker.setUseJmx(true); + broker.getManagementContext().setCreateConnector(false); broker.setPlugins(new BrokerPlugin[] { new ConnectionDotFilePlugin() }); broker.addConnector("tcp://localhost:61616"); broker.addConnector("stomp://localhost:61613"); } broker.start(); + ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(); + factory.setClientIDPrefix("testClient"); + // lets create a dummy couple of consumers - Connection connection = new ActiveMQConnectionFactory().createConnection(); + Connection connection = factory.createConnection(); connection.start(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer consumer1 = session.createConsumer(new ActiveMQQueue("Orders.IBM"));