From activemq-users-return-1753-apmail-geronimo-activemq-users-archive=geronimo.apache.org@geronimo.apache.org Mon Jun 05 14:52:49 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 74373 invoked from network); 5 Jun 2006 14:52:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jun 2006 14:52:49 -0000 Received: (qmail 97317 invoked by uid 500); 5 Jun 2006 14:52:48 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 97296 invoked by uid 500); 5 Jun 2006 14:52:48 -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 97287 invoked by uid 99); 5 Jun 2006 14:52:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 07:52:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.100.65.198] (HELO BUTTHEAD.daxtechnologies.com) (66.100.65.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2006 07:52:46 -0700 Received: from BEAVIS.daxtechnologies.com ([192.168.0.1]) by BUTTHEAD.daxtechnologies.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Jun 2006 10:51:57 -0400 Received: from [192.168.0.34] ([192.168.0.34]) by BEAVIS.daxtechnologies.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Jun 2006 10:51:57 -0400 Message-ID: <44844528.1090207@daxtechnologies.com> Date: Mon, 05 Jun 2006 10:52:24 -0400 From: Adrian Tarau User-Agent: Mail/News 1.5 (X11/20060214) MIME-Version: 1.0 To: activemq-users@geronimo.apache.org Subject: Re: Connection close References: <4677143.post@talk.nabble.com> <4677820.post@talk.nabble.com> <4678135.post@talk.nabble.com> <448044B8.1080909@daxtechnologies.com> <44804935.2060701@daxtechnologies.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Jun 2006 14:51:57.0781 (UTC) FILETIME=[9805D050:01C688AF] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, I searched again the whole code(after close() ), and is not too much code to search, I close only Consumers, Producers, Writers, OutputStreams, and the connection and browse on a shutdown hook. Maybe I'm wrong but I'm pretty sure I do I don't close the connection. The strange thing is that is happened random, cannot figure out the conditions. Once it was at 3 minutes after I started the application, that was strange !!! James Strachan wrote: > On 6/2/06, Adrian Tarau wrote: >> >> I have broker with VM connector and I keep one session to this >> connector. After a while I cannot consume messages, I got >> "avax.jms.IllegalStateException: The Session is closed" even if I don't >> close the connection. > > Sounds like the connection was closed. You positive you're not closing > it someplace? You're not using Spring's JmsTemplate or anything? > > >> Is not safe to keep a session opened for a long time? > > It should work. > >> There is some >> background job that close long running sessions? > > We have an inactivity timeout you can enable on a transport which will > close inactive connections on the broker side - other than that no.