Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A272D66E for ; Mon, 27 Aug 2012 21:18:03 +0000 (UTC) Received: (qmail 85461 invoked by uid 500); 27 Aug 2012 21:18:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 85405 invoked by uid 500); 27 Aug 2012 21:18:02 -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 85393 invoked by uid 99); 27 Aug 2012 21:18:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 21:18:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of zzuzack1@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 21:17:56 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T65I6-0001Ss-Be for users@activemq.apache.org; Mon, 27 Aug 2012 12:48:07 -0700 Date: Mon, 27 Aug 2012 12:48:06 -0700 (PDT) From: TrainTime To: users@activemq.apache.org Message-ID: <1346096886327-4655632.post@n4.nabble.com> Subject: C# Consumers Disconnecting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've been trying to figure out this problem I've been having with apache NMS for at least a week now, so I decided maybe I would try to post here and see if anyone has experienced similar issues. In my situation, we have about 5-7 producers all producing to one topic, and then we have one consumer consuming data from the same topic. However, this singular consumer will suddenly disconnect from the broker with no indication to me (that i've been able to find) and stop receiving anything, the only way to tell is by checking the broker and seeing that the topic has no consumers. I have been searching around these forums for a solution and here's a few things I tried that didn't seem to make any difference: 1. Set ?wireFormat.maxInactivityDuration=0 on my openWire transport connector 2. Set my IConnection and ISession to be auto acknowledge 3. Changed the memory limit of topics to 100mb from 1 mb 4. Call IMessage.Acknowledge after receiving a message 5. Changed IConnection and ISession to be persistent object along with the consumer I'm not sure what else at this point I have to try. I'm using activeMQ 5.6 SNAPSHOT which runs as a service, Apache.NMS 1.5.1.2739, and Apache.NMS.ActiveMQ 1.5.6.2746. Also one last thing, here's how I'm creating my consumer in the C# code: //setup jms IConnectionFactory factory = new ConnectionFactory(_connectURI); _connection = factory.CreateConnection(); _connection.AcknowledgementMode = AcknowledgementMode.AutoAcknowledge; _connection.ConnectionInterruptedListener += ConnectionLost; _connection.Start(); _session = _connection.CreateSession(AcknowledgementMode.AutoAcknowledge); _consumer = _session.CreateConsumer(new Apache.NMS.ActiveMQ.Commands.ActiveMQTopic(_topicName)); _consumer.Listener += ProcessItem; _status.Status = ConnectorStatus.Running; _status.Details = "JMS Connector is running"; And here's what the consumer listener function looks like: public void ProcessItem(IMessage message) { message.Acknowledge(); /* code */ } I also tried looking at Apache logging a bit, but it didn't seem to output anything useful. I think I need to change what its logging, is ERROR the correct syntax for the sl4j logging properties file? Thanks in advance for any help anyone can offer, this has been driving me nuts >< -- View this message in context: http://activemq.2283324.n4.nabble.com/C-Consumers-Disconnecting-tp4655632.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.