Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 57457 invoked from network); 24 Aug 2007 10:00:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 10:00:38 -0000 Received: (qmail 81864 invoked by uid 500); 24 Aug 2007 10:00:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 81846 invoked by uid 500); 24 Aug 2007 10:00:34 -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 81837 invoked by uid 99); 24 Aug 2007 10:00:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 03:00:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 10:01:10 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IOVxX-0006U9-0Z for users@activemq.apache.org; Fri, 24 Aug 2007 03:00:07 -0700 Message-ID: <12309538.post@talk.nabble.com> Date: Fri, 24 Aug 2007 03:00:05 -0700 (PDT) From: Dave cawthorn To: users@activemq.apache.org Subject: query timeout for jdbc persistence MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dave.cawthorn@empired.com X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm using activemq in a replicated message store configuration with sequoia (pooled with c3p0). I would like to be able to put a timeout on the queries that activemq uses for persistence because sometimes sequoia can hang a query (i'm working on that issue seperatetly) which causes activemq to hang which causes... This would at least let our app fail fast and possibly recover via some sort of retry or restart of a failed component. Does any one know a way of setting a timeout for the queries that activemq uses to persist messages (ie jdbcStatement.setQueryTimeout). I already have played with the c3p0 timeouts but they only really affect the way the checking out of pooled connections fail etc. I realise this might be complicated when using batched updates but if we could set it when not using that feature it would make it possible to be more reliable. PS i still think message groups rock! Thanks Dave Cawthorn -- View this message in context: http://www.nabble.com/query-timeout-for-jdbc-persistence-tf4322706s2354.html#a12309538 Sent from the ActiveMQ - User mailing list archive at Nabble.com.