Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 45189 invoked from network); 18 Jul 2006 14:06:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 14:06:53 -0000 Received: (qmail 38072 invoked by uid 500); 18 Jul 2006 14:06:52 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 38062 invoked by uid 500); 18 Jul 2006 14:06:52 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 38053 invoked by uid 99); 18 Jul 2006 14:06:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 07:06:52 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.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; Tue, 18 Jul 2006 07:06:51 -0700 Received: from dimstar2.ats.sensis.com ([172.21.1.6]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1G2qDW-0000PC-Rg for activemq-users@geronimo.apache.org; Tue, 18 Jul 2006 10:06:30 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar2.ats.sensis.com with esmtp (Exim 4.50) id 1G2qCw-0001qr-5q for activemq-users@geronimo.apache.org; Tue, 18 Jul 2006 10:05:54 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Help running CPP Example Date: Tue, 18 Jul 2006 10:05:48 -0400 Message-ID: <5A211522579EBD4A83155ED7FA1530637FC394@corpatsmail1.corp.sensis.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help running CPP Example Thread-Index: AcaqcFx94RB0Q3TaS0qu57RPKR3iJAAAHzCw From: "Bish, Tim" To: 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 (score=-1.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80) X-Sensis-MailScanner-From: tim.bish@sensis.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Right, I just checked and the change in the Stomp Transport on the Broker side to add a response-id to Connected Commands is not in 4.0.1 Broker, so it will not work. You will need to grab the SVN code and build it. Then it should connect fine. ----------------------------------------- Timothy A. Bish Sensis Corporation -----------------------------------------=20 > -----Original Message----- > From: kevinba [mailto:kevin.bales@itssiemens.com] > Sent: Tuesday, July 18, 2006 9:43 AM > To: activemq-users@geronimo.apache.org > Subject: RE: Help running CPP Example >=20 >=20 > I'm using 4.01 of the server. As for the client I'm using the latest as > of > last Thrusday out of the trunk/activemq-cpp directory. >=20 > My connection string is "tcp://127.0.0.1:61613". >=20 > I can connect fine and everything works if I do it from java. >=20 > Also, with JConsole up and running I can see it add a new tree node called > "Connection" when the code actually open the socket. Under that node it > has > a tree node called "Stomp" and then it list my activemq-cpp client. >=20 >=20 > I've traced the code and this is what I'm seeing. >=20 > The "CONNECT" command is sent out. >=20 > The command is >=20 > CONNECT > client-id: ( I forget the number) >=20 >=20 >=20 > The "CONNECTED" command is received > CONNECTED > session: >=20 >=20 > But when the ResponseCorrelator tries to match the CorrelationID to the > requestMap to match the message that was sent to the incoming message it > fails. The response->getCorrelationId() method returns 0. and when the > message was sent the line of code command->setCommandId( > getNextCommandId() > ); set the commandId to 1. When it loops through the requestMap to > locate > the correlation request it is in there. Just the response has no > correlationID. >=20 > So the response pointer in the "Futureresponse" class is null because the > returned message doesn't match up because of the correlationID being > blank. >=20 > I do not know stomp other than taking a quick look at the STOMP > specification. Is the correlationid in the incoming message or what? I > didn't see that in the specification where that is used. >=20 > Thanks, >=20 >=20 > -- > View this message in context: http://www.nabble.com/Help-running-CPP- > Example-tf1957518.html#a5378405 > Sent from the ActiveMQ - User forum at Nabble.com.