activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From crazy4venu <crazy4v...@gmail.com>
Subject Re: peer did not "send his wire format."
Date Wed, 13 Aug 2008 12:54:26 GMT

Hi Tim,

i am sending this snippet of code which i am using to connect. 

kindly verify whether i am doing it right ?


ActiveMQConnectionFactory* connectionFactory = new
ActiveMQConnectionFactory("tcp://exchange.marketcetera.com:7001?wireFormat=openwire&transport.useAsyncSend=false");



		// Create a Connection
		connection = connectionFactory->createConnection();
		
		connection->start();

		// Create a Session
		session = connection->createSession( Session::AUTO_ACKNOWLEDGE );

		destination = session->createQueue("testbed1");

		// Create a MessageProducer from the Session to the Topic or Queue
		producer = session->createProducer( destination );
		producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT );


Note: still i am getting same error.

Regards
Tinnu


Timothy Bish wrote:
> 
> Do you have a broker running?  If so are is the IP Address and port you
> are using correct for your broker?
> 
> 
> 
> On Wed, 2008-08-13 at 04:15 -0700, crazy4venu wrote:
>> Hi Tim,
>> 
>> When i am trying to execute the sample Activemq example but i get strange
>> message showing 
>> 
>> peer did not  "send his wire format."
>> 
>> 
>> 
>> =====================================================
>> Starting the example:
>> -----------------------------------------------------
>> OpenWireFormatNegotiator::requestWire format negotiation timeout: peer
>> did
>> not s
>> end his wire format.
>>         FILE:
>> ..\src\main\activemq\connector\openwire\OpenWireFormatNegotiator.c
>> pp, LINE: 97
>>         FILE:
>> ..\src\main\activemq\connector\openwire\OpenWireFormatNegotiator.c
>> pp, LINE: 106
>>         FILE:
>> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
>> LIN
>> E: 1454
>>         FILE:
>> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
>> LIN
>> E: 223
>>         FILE:
>> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
>> LIN
>> E: 157
>>         FILE: ..\src\main\activemq\core\ActiveMQConnectionFactory.cpp,
>> LINE:
>> 174
>> 
>> -----------------------------------------------------
>> Finished
>> =====================================================
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/peer-did-not--%22send-his-wire-format.%22-tp18961130p18962453.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message