Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 79629 invoked from network); 28 Jan 2008 08:19:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2008 08:19:13 -0000 Received: (qmail 1676 invoked by uid 500); 28 Jan 2008 08:18:59 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 1659 invoked by uid 500); 28 Jan 2008 08:18:59 -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 1640 invoked by uid 99); 28 Jan 2008 08:18:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 00:18:59 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 08:18:30 +0000 Received: by fg-out-1718.google.com with SMTP id l27so1470039fgb.44 for ; Mon, 28 Jan 2008 00:18:36 -0800 (PST) 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=u7LvPn6u88Qnqcwhb0iThkwVMBaRmRGXaGy+oZrAWYw=; b=SP5rOl6UHHETykW7cw1iG+fxfKwzAsSQ1xVYoytVEQPJzhYqqO5eNyiflYyN0y5HLFy+/NHgyveXoVW0uI1Nukf5WMcch84aKeB3vWUdt1NNe6qaMA6qhS5f7tac/e/Ziq4dxQQ3GSKqrpbKzofzeIr2i+ahMy8XlUl1Xd2ho8w= 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=NegBf5Ia6PAHzEVmD7XsXzHmRfeihpmxPInH+mhGZUqjmrP5ABrfC/VY50sqED1G6DNJuoPAUQ1706bCNt9c3gbWMJF8CqploEV5Oz2aZsTXywLRV8KkR0GGZ6c0Ck0UKBtpPauMR08d7Wxvq9p8yLZbY/ltapQXxlsy7xmxW0w= Received: by 10.82.145.7 with SMTP id s7mr9290961bud.6.1201508315878; Mon, 28 Jan 2008 00:18:35 -0800 (PST) Received: from ?192.168.1.244? ( [86.134.103.250]) by mx.google.com with ESMTPS id f8sm12204988nfh.13.2008.01.28.00.18.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Jan 2008 00:18:34 -0800 (PST) Message-Id: <6CF8E87E-EE67-498C-803A-49A49C2B6E2E@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: Using one session per message Date: Mon, 28 Jan 2008 08:18:32 +0000 References: <15114117.post@talk.nabble.com> <479BCB98.2000408@gmx.de> <15114519.post@talk.nabble.com> <77BB6BAB-AF1A-480B-AD78-F73042AF1856@gmail.com> <479CF777.3000108@gmx.de> <69BB26A6-C278-40B0-9500-9C1436B9F129@gmail.com> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org thx James - I need caffeine! On Jan 28, 2008, at 7:20 AM, James Strachan wrote: > Its called failover the URI to use btw... > http://activemq.apache.org/how-do-i-configure-automatic-reconnection.html > > > On 28/01/2008, Rob Davies wrote: >> >> On Jan 27, 2008, at 9:28 PM, Marco Buss wrote: >> >>> Rob Davies schrieb: >>>> >>>> On Jan 27, 2008, at 12:22 AM, tpamsler wrote: >>>> >>>>> >>>>> Marco, >>>>> >>>>> Thank you for the response. Are there limitations on how long a >>>>> session can >>>>> stay open and the number of messages it can handle? If I use the >>>>> 2nd example >>>>> in our application, the session may stay open for a few weeks. >>>>> >>>>> Best, >>>>> -- Thomas >>>>> >>>>> >>>>> Marco Buss wrote: >>>>>> >>>>>> You only need one session for your Messages. So your 2nd example >>>>>> is ok. >>>>>> >>>>> >>>>> --View this message in context: http://www.nabble.com/Using-one-session-per-message-tp15114117s2354p15114519.html >>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>> >>>> There is no limit to how long a session is open - so weeks will be >>>> ok ;) >>>> >>>> cheers, >>>> >>>> Rob >>> And what happens if the connection fails (timeout on tcp)? >> >> If you use the reliable transport you get automatic reconnection - >> see http://activemq.apache.org/uri-protocols.html >> This includes getting a replay of the clients state - so from the >> developers point of view, a failure/reconnect is seamless. >> >> cheers, >> >> Rob >> >> > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com