Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 33941 invoked from network); 10 Sep 2009 11:38:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 11:38:15 -0000 Received: (qmail 89917 invoked by uid 500); 10 Sep 2009 11:38:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 89880 invoked by uid 500); 10 Sep 2009 11:38:14 -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 89870 invoked by uid 99); 10 Sep 2009 11:38:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 11:38:14 +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 (athena.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; Thu, 10 Sep 2009 11:38:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MlhyC-000057-0n for users@activemq.apache.org; Thu, 10 Sep 2009 04:37:44 -0700 Message-ID: <25381671.post@talk.nabble.com> Date: Thu, 10 Sep 2009 04:37:43 -0700 (PDT) From: pPolak To: users@activemq.apache.org Subject: C# client stops receiving messages after getting ~400 of them MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: alanko@centrum.sk X-Virus-Checked: Checked by ClamAV on apache.org Hi, I need help with this scenario: * two clients connecting to the same broker, one written in JAVA, the other one in C# * there are two queues, SentByJava and SentByCSharp * both clients have a consumer and a producer * JAVA producer sends messages to the SentByJava queue, C# producer sends messages to the SentByCSharp queue * JAVA consumer gets messages from the SentByCSharp queue, C# consumer gets messages from the SentByJava queue JAVA client works fine. C# client has a problem with its consumer: after some time the consumer stops getting messages. "Some time" is less than 10 seconds from start, about 400 messages are usually successfully received. It does not matter whether the JAVA client is running or not, nor does it matter whether the C# client's producer is running or not. It happens even when I run only the C# client with producer part commented out. I use this url to connect: failover:(tcp://WSSK809001:61616) The consumer runs in its own thread and basically just loops and gets messages: private void ConsumeMessages() { while (!stopRequested) { Thread.Sleep(10); IMessage message = consumer.Receive(TimeSpan.FromMilliseconds(100)); if (message != null) { //trigger the OnMessageReceived event OnMessageReceived(message); } } I really have no idea what to do with this :( I tried increasing the Thread.Sleep() milliseconds to 100 - did not help. Did any of you experience something like this? Thanx for any help. Peter. -- View this message in context: http://www.nabble.com/C--client-stops-receiving-messages-after-getting-%7E400-of-them-tp25381671p25381671.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.