Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 53458 invoked from network); 19 May 2009 05:48:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 May 2009 05:48:12 -0000 Received: (qmail 64435 invoked by uid 500); 19 May 2009 05:48:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 64376 invoked by uid 500); 19 May 2009 05:48:11 -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 64362 invoked by uid 99); 19 May 2009 05:48:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 05:48:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 209.85.221.171 as permitted sender) Received: from [209.85.221.171] (HELO mail-qy0-f171.google.com) (209.85.221.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 05:48:00 +0000 Received: by qyk1 with SMTP id 1so6613135qyk.22 for ; Mon, 18 May 2009 22:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=1kY8kPP7Z3BOqdr7uJtOpCkFqsXvgZGJ336PxENV1ow=; b=knqeVh61ioVo0I1LLqRyamxbCeUkfw+3EM3oTryUhF3ll2ZEghlkEqXuYWCJ3AIqUW gSxlcqQMgoFtdyTCuJC/stQ+XdAssUhJ4PyFaFPdM4FihH+4DSv/jODTlDV3LXK1h6GG Xyar3Q2Hl3Dw5alETGE8WO8w6fjzy6GiWYjLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=xHqw7vAMAoy/b3AiXBp2fm2tkM8dSLZkWzuqjIzzDK/d2G8//pQWDRcis7N4qup0dS 4bZtkTd0bvoNOmvlZJfAsIiJGpZMtlgtB/z1HeoNMgTk3X8H4tHFQwO3Z1Wf3s+wZCOB hwSisCSkTnC0MGDc2ev6q7qq2raqqGpepSNHg= Received: by 10.224.74.8 with SMTP id s8mr7100426qaj.323.1242712059658; Mon, 18 May 2009 22:47:39 -0700 (PDT) Received: from ?192.168.1.87? ([81.147.86.46]) by mx.google.com with ESMTPS id 6sm2676004qwd.32.2009.05.18.22.47.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 18 May 2009 22:47:38 -0700 (PDT) Message-Id: <8BD05122-44DB-45AE-847C-2FF6DAB5C63F@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: <23607343.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Durable Subscriber and unclean disconnection Date: Tue, 19 May 2009 06:47:34 +0100 References: <23591185.post@talk.nabble.com> <3a73c17c0905180215k2b4e4359kfaf2284089fde882@mail.gmail.com> <23594092.post@talk.nabble.com> <23607343.post@talk.nabble.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org I should have explained - that although this is client-side configuration - there is a handshake between the client and broker on initialization. The lowest value of maxInactivityDuration is used by both peers of the transport (client and broker). So if your client bounced - or the network connection between the client and broker bounced - the broker would be able to detect that. cheers, Rob On 19 May 2009, at 00:51, lyall wrote: > > Thanks Rob. > > I had a look at those, but they appear to address the Client > configuration. > My problem is if the Client unexpectedly goes away and comes back, the > durable subscriber is unable to re-connect because ActiveMQ 5.2 says > that > they are already connected. > I will admit, I have yet to test if I have 'keepAlive=true' in my > client > configuration, whether that will cause a cleanup in the ActiveMQ > server - I > will keep this thread informed as to the status. > > ...Lyall > > > rajdavies wrote: >> >> Have you disabled the maxInactivityDuration by setting it to zero ? >> If you have - your broker may not detect the transport socket has >> expired - and cleanly closed the connection. >> See - http://activemq.apache.org/configuring-wire-formats.html >> >> cheers, >> >> Rob >> >> On 18 May 2009, at 10:32, lyall wrote: >> >>> >>> Thank you Gary. >>> >>> I had found another post regarding this same 'disconnected durable >>> subscriber' issue. >>> Simply saying 'BPEL should correctly disconnect', does not help if >>> the BPEL >>> server should happen to fail - power, hardware, network disconnect, >>> etc. The >>> new connection needs to replace the old, if it can be shown that the >>> old is >>> dead. I have no idea if this is possible. >>> >>> Regarding the 'connecting to itself', I will attempt to obtain more >>> info, >>> maybe the Snapshot version, once I get the wildcard setting done, >>> does not >>> have the problems with regard to durable subscribers. It's entirely >>> possible >>> my bumbling attempts at configuration introduced the problem itself. >>> I will >>> have another crack and get back. >>> >>> ...Lyall >>> >>> >>> >>> >>> Gary Tully wrote: >>>> >>>> seems like a bpel process un/re-deployment logic should be doing an >>>> unsubscribe to remove the durable subscription. >>>> >>>> Failing this, an activemq feature where a configuration option on a >>>> durable >>>> subscriber could specify an inactivityTimeout after which time an >>>> inactive >>>> durable subscription would expire could help here. No such feature >>>> exists >>>> at >>>> the moment though. >>>> >>>> On localhost listens and multiple interfaces with the 5.3-SNAPSHOT, >>>> some >>>> details can be found in the AMQ-2094 jira issue >>>> for that change >>>> of >>>> behavior. To listen on all interfaces (the old behaviour) you >>>> need to >>>> specify the wildcard address. >>>> Could you comment on that issue with your feedback w.r.t >>>> connections to >>>> its >>>> self so we can get to the bottom of it? thanks. >>>> >>>> 2009/5/18 lyall >>>> >>>>> >>>>> I am using ActiveMQ 5.2.0 on Windows 2003 Server. >>>>> Out of the box config. >>>>> If a client to a topic disconnects, due to failure, or in my case, >>>>> re-deployment of a BPEL process, it cannot re-connect as ActiveMQ >>>>> says >>>>> that >>>>> it is still connected. >>>>> >>>>> I tried 5.3.snapshot (as at 18-May-2009) but that bought a whole >>>>> slew of >>>>> new >>>>> problems, including which interfaces it listens on and trying to >>>>> establish >>>>> connections with itself if I attempt to force particular >>>>> interfaces - at >>>>> least 5.2.0 works, except for this reconnection point. >>>>> >>>>> How can I work around this? Can I? >>>>> >>>>> ...Lyall >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Durable-Subscriber-and-unclean-disconnection-tp23591185p23591185.html >>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> -- >>>> http://blog.garytully.com >>>> >>>> Open Source SOA >>>> http://FUSESource.com >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Durable-Subscriber-and-unclean-disconnection-tp23591185p23594092.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Durable-Subscriber-and-unclean-disconnection-tp23591185p23607343.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >