activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bish, Tim" <Tim.B...@Sensis.com>
Subject RE: Help running CPP Example
Date Tue, 18 Jul 2006 14:05:48 GMT
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
----------------------------------------- 



> -----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
> 
> 
> 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.
> 
> My connection string is "tcp://127.0.0.1:61613".
> 
> I can connect fine and everything works if I do it from java.
> 
> 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.
> 
> 
> I've traced the code and this is what I'm seeing.
> 
> The "CONNECT"  command is sent out.
> 
> The command is
> 
> CONNECT
> client-id: <xxxxxx>  ( I forget the number)
> 
> 
> 
> The "CONNECTED" command is received
> CONNECTED
> session: <xxxxxx>
> 
> 
> 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.
> 
> So the response pointer in the "Futureresponse" class is null because
the
> returned message doesn't match up because of the correlationID being
> blank.
> 
> 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.
> 
> Thanks,
> 
> 
> --
> 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.


Mime
View raw message