Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36949 invoked from network); 4 Nov 2009 07:08:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 07:08:45 -0000 Received: (qmail 65958 invoked by uid 500); 4 Nov 2009 07:08:45 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65919 invoked by uid 500); 4 Nov 2009 07:08:44 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 65909 invoked by uid 99); 4 Nov 2009 07:08:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 07:08:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 07:08:33 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N5ZyX-0003aR-7D for users@activemq.apache.org; Tue, 03 Nov 2009 23:08:13 -0800 Message-ID: <26191901.post@talk.nabble.com> Date: Tue, 3 Nov 2009 23:08:13 -0800 (PST) From: KimSchneider To: users@activemq.apache.org Subject: Re: Active NMS Producer + Java Consumer In-Reply-To: <1257258348.2865.3.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kim.schneider@kraemer-it.de References: <26160030.post@talk.nabble.com> <1257258348.2865.3.camel@localhost> X-Virus-Checked: Checked by ClamAV on apache.org Thanks a lot for your reply! I've found the wireFormat.MaxInactivityDuration option somewhen last night and that's the solution for my problem. I wonder if nobody else had that problem, because I didn't find anything and the option is kinda hidden (I'm new to jms) Now I'm using the failover, too, it's a great help. Anyway, thanks for your answer 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: > > > uri="tcp://0.0.0.0:61616?transport.keepAliveResponseRequired=true"/> > > > 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-tp26160030p26191901.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.