activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yinzara <yinz...@gmail.com>
Subject Re: Active NMS Producer + Java Consumer
Date Wed, 09 Jun 2010 19:25:50 GMT

Thank you so much. I was getting the same problem and I was pulling out my
hair reading through news groups before I found your post.  I ended up using
your second solution of editing the activemq.xml file.  Now the problem
doesn't exist anymore. This was causing so much anxiety on our side. THANKS!



Timothy Bish wrote:
> 
> On Tue, 2009-11-03 at 01:08 -0800, KimSchneider wrote:
>> Hi,
>> 
>> I'm using Active NMS .NET to produce messages and a java consumer.
>> 
>> I can send messages from the producer to the message queue and the
>> consumer
>> is able to use them. But after a couple of seconds without sending a
>> message, I get the following error
> 
> This is caused by a change in the 5.3 release of ActiveMQ.  You can do
> on of three things.  
> 
> 1. add this option to your client's current URI string;
> wireFormat.MaxInactivityDuration=-1
> 
> 2. Change the Openwire connector configuration in ActiveMQ's
> activemq.xml to the following:
> 
> <transportConnectors>
>    <transportConnector name="openwire"
> uri="tcp://0.0.0.0:61616?transport.keepAliveResponseRequired=true"/>
> </transportConnectors>
> 
> 3. Download the latest source for NMS and NMS.ActiveMQ from trunk and
> build the DLLs from that since this issue has been resolved there.
> 
> Regards
> Tim.
> 
>> 
>> [code]
>> Apache.NMS.ActiveMQ.BrokerException: System.InvalidOperationException:
>> Error
>> writing to broker.  Transport connection is closed.
>>    bei Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransport.Oneway(Command
>> command) in
>> d:\Hudson\jobs\Regatta_Products\workspace\External\Apache.NMS\project\Apache.NMS.ActiveMQ\tags\1.1.0\src\main\csharp\Transport\Tcp\TcpTransport.cs:Zeile
>> 118. : Transport connection error: Error writing to broker.  Transport
>> connection is closed.
>> 
>>    bei Apache.NMS.ActiveMQ.Transport.ResponseCorrelator.Request(Command
>> command, TimeSpan timeout) in
>> d:\Hudson\jobs\Regatta_Products\workspace\External\Apache.NMS\project\Apache.NMS.ActiveMQ\tags\1.1.0\src\main\csharp\Transport\ResponseCorrelator.cs:Zeile
>> 105.
>>    bei Apache.NMS.ActiveMQ.Connection.SyncRequest(Command command,
>> TimeSpan
>> requestTimeout) in
>> d:\Hudson\jobs\Regatta_Products\workspace\External\Apache.NMS\project\Apache.NMS.ActiveMQ\tags\1.1.0\src\main\csharp\Connection.cs:Zeile
>> 338.
>>    bei Apache.NMS.ActiveMQ.Session.DoSend(Command message, TimeSpan
>> requestTimeout) in
>> d:\Hudson\jobs\Regatta_Products\workspace\External\Apache.NMS\project\Apache.NMS.ActiveMQ\tags\1.1.0\src\main\csharp\Session.cs:Zeile
>> 484.
>>    bei Apache.NMS.ActiveMQ.Session.CreateProducer(IDestination
>> destination)
>> in
>> d:\Hudson\jobs\Regatta_Products\workspace\External\Apache.NMS\project\Apache.NMS.ActiveMQ\tags\1.1.0\src\main\csharp\Session.cs:Zeile
>> 224.
>>    bei Communicator.ActiveMQCommunicator.sendMessage(String message) in
>> D:\dev\ServerEye3\Source\Communicator\Communicator\ActiveMQCommunicator.cs:Zeile
>> 78.[/code]
>> 
>> Does anyone know what this means and how I can fix that?
>> 
>> PS: I'm using the latest version of activemq and activemq nms
> -- 
> Tim Bish
> http://fusesource.com
> http://timbish.blogspot.com/
> 
> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Active-NMS-Producer-%2B-Java-Consumer-tp26160030p28834806.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message