Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 66586 invoked from network); 28 May 2007 08:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2007 08:06:28 -0000 Received: (qmail 44934 invoked by uid 500); 28 May 2007 08:06:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 44799 invoked by uid 500); 28 May 2007 08:06:32 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 44789 invoked by uid 99); 28 May 2007 08:06:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2007 01:06:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 May 2007 01:06:26 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HsaEw-0003Ad-2s for users@activemq.apache.org; Mon, 28 May 2007 01:06:06 -0700 Message-ID: <10832540.post@talk.nabble.com> Date: Mon, 28 May 2007 01:06:05 -0700 (PDT) From: Jiang To: users@activemq.apache.org Subject: How to use http connector MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: zju_jjc@163.com X-Virus-Checked: Checked by ClamAV on apache.org I add this in the activemq.xml and started Activemq server . The console is show: 2007-05-28 14:00:07.796::INFO: Started SocketConnector @ localhost:8080 INFO TransportConnector - Connector http://localhost:8080 Started INFO NetworkConnector - Network Connector default-nc Started But when I use code below in the remote client: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("http://localhost:8080"); Activemq throw javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [http] at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:33) why ? Could someone give me some example codes .??? -- View this message in context: http://www.nabble.com/How-to-use-http-connector-tf3826648s2354.html#a10832540 Sent from the ActiveMQ - User mailing list archive at Nabble.com.