activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tim.b...@sensis.com>
Subject Re: openwire ok, but when using stomp i get: Wire format negociation timeout: peer did not send his wire format.
Date Mon, 06 Aug 2007 12:18:42 GMT

> Now i added a new connector on a different port like you said:
> 
> <transportConnector name="stomp" uri="stomp://localhost:61613"/>
> 
> 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


Mime
View raw message