From users-return-10150-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Aug 06 12:19:39 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 77214 invoked from network); 6 Aug 2007 12:19:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 12:19:37 -0000 Received: (qmail 46880 invoked by uid 500); 6 Aug 2007 12:19:36 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 46841 invoked by uid 500); 6 Aug 2007 12:19:36 -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 46772 invoked by uid 99); 6 Aug 2007 12:19:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 05:19:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [199.105.164.5] (HELO smtpmail2.sensis.com) (199.105.164.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 12:19:23 +0000 Received: from dimstar3.ats.sensis.com ([172.21.1.34]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1II1YE-0000Fh-GF for users@activemq.apache.org; Mon, 06 Aug 2007 08:19:10 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar3.ats.sensis.com with esmtp (Exim 4.63) (envelope-from ) id 1II1Xj-0007gT-KU for users@activemq.apache.org; Mon, 06 Aug 2007 08:18:40 -0400 Received: from 172.21.6.29 ([172.21.6.29]) by corpatsmail1.corp.sensis.com ([172.21.1.88]) with Microsoft Exchange Server HTTP-DAV ; Mon, 6 Aug 2007 12:18:38 +0000 Received: from tbish-laptop.ats.sensis.com by corpatsmail1.corp.sensis.com; 06 Aug 2007 08:18:42 -0400 Subject: Re: openwire ok, but when using stomp i get: Wire format negociation timeout: peer did not send his wire format. From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <12012765.post@talk.nabble.com> References: <11987990.post@talk.nabble.com> <46B37F9A.3050304@twcny.rr.com> <12012765.post@talk.nabble.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 06 Aug 2007 08:18:42 -0400 Message-Id: <1186402722.17786.5.camel@tbish-laptop.ats.sensis.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-2.fc7) X-Sensis-MailScanner-Information: Scanned at Sensis Corporation by MailScanner X-Sensis-MailScanner: Found to be clean X-Sensis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-3.783, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.71, BAYES_00 -2.60, CRM114_CHECK -0.18, TW_QC 0.08) X-Sensis-MailScanner-From: tim.bish@sensis.com X-Virus-Checked: Checked by ClamAV on apache.org > Now i added a new connector on a different port like you said: > > > > But if i use a connector like that one, isn't specifying the wireFormat in > > tcp://172.18.117.126:61613?wireFormat=stomp&transport.useAsyncSend=false > > redundant? Because i already specified the wireFormat in the url-connection > "stomp://" ? > > No, its not. The transport connector that you added to the broker is known to the broker but not to the client software. ActiveMQ-CPP doesn't read your brokers xml config file, and there is no magic that happens when it connects to figure out what protocol is used. You have to tell it what language to speak that that it can understand the broker and the broker can understand it. By default amqcpp uses the openwire protocol, so you don't actually have to specify it in the URL if you don't want to, but if you are going to connect to a broker that on a stomp channel, then you need to tell it that since it can't know ahead of time what protocol is in use at that URL. Regards Tim