Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 27827 invoked from network); 18 Jul 2006 16:56:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 16:56:40 -0000 Received: (qmail 13055 invoked by uid 500); 18 Jul 2006 16:56:38 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 13037 invoked by uid 500); 18 Jul 2006 16:56:38 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 13028 invoked by uid 99); 18 Jul 2006 16:56:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 09:56:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 09:56:36 -0700 Received: by ug-out-1314.google.com with SMTP id m2so12039uge for ; Tue, 18 Jul 2006 09:56:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kXVi1nffT4nBrXOQxtajrDxq9SFcu4tMB/mzv1XmAHoCCkvSfzrn33gLiiuSQKumEh5EjHbrwiQeCtpwflmBL0s7m+Pu6g1CfzLdjD8AtuuUPWaqNGFik/+Ued8opAYaMPyE8n5M7c6vB29Otixv6yiI8/YeMPq1RNHW4lcC/0g= Received: by 10.78.158.11 with SMTP id g11mr1660031hue; Tue, 18 Jul 2006 09:56:15 -0700 (PDT) Received: by 10.78.174.8 with HTTP; Tue, 18 Jul 2006 09:56:15 -0700 (PDT) Message-ID: Date: Tue, 18 Jul 2006 17:56:15 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Session closed after a while(random) In-Reply-To: <44BD10EA.60909@daxtechnologies.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <005e01c6a673$5fdce600$2802a8c0@Workstation> <44B6B7A0.1020202@daxtechnologies.com> <44B7AF4C.3000802@daxtechnologies.com> <44BBA0A0.2090006@daxtechnologies.com> <44BC03B2.6090007@daxtechnologies.com> <44BCEB60.6050804@daxtechnologies.com> <44BCFBAD.8090601@daxtechnologies.com> <44BD10EA.60909@daxtechnologies.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 7/18/06, Adrian Tarau wrote: > Hi James, > > Again I use VM connector so no failure should happen. So all your code resides in a single JVM right? There is no TCP whatsoever? > But anyway that's not a problem with the failure, the big question is > why the connection is cleaned up when a transport error occur What else could we do other than close the connection and throw an exception if the transport goes bad. > and what's > the approach here, is not clear for me in case of transport failures, > the connection release the sessions and next time I will get "Session > close" when I'm trying to create a consumer. > What should I do? in case of an error first try to recreate the session? So first try and diagnose what is causing the failure. So turn on debug logging. Or create a local build of ActiveMQ which dumps in big flashing letters the exact error which is causing the transport to be closed - something is causing the session to close and its 1 single Java class, so you should be able to add logging code in there to tell you exactly what is causing it. Then mail us the stack trace and interesting bit of your log. -- James ------- http://radio.weblogs.com/0112098/