Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 49756 invoked from network); 13 Mar 2009 15:25:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 15:25:56 -0000 Received: (qmail 13399 invoked by uid 500); 13 Mar 2009 15:25:54 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 13382 invoked by uid 500); 13 Mar 2009 15:25:54 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 13371 invoked by uid 99); 13 Mar 2009 15:25:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 08:25:54 -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 (athena.apache.org: local policy) Received: from [83.236.150.10] (HELO mx0-0.vva.de) (83.236.150.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 15:25:45 +0000 Received: from mx1.vva.de ([83.236.150.11]) by mx0-0.vva.de with esmtp (Exim 4.63 #1) id 1Li9GF-0000fZ-H5 for ; Fri, 13 Mar 2009 16:25:23 +0100 Received: from d-ex-01.vva.local ([10.0.20.11]) by mx1.vva.de (mx1.vva.de) with ASMTP id USM95222 for ; Fri, 13 Mar 2009 16:25:22 +0100 Received: from d-ex-01.vva.local ([10.0.20.11]) by d-ex-01.vva.local ([10.0.20.11]) with mapi; Fri, 13 Mar 2009 16:25:22 +0100 From: Mario-Leander Reimer To: "users@jackrabbit.apache.org" Date: Fri, 13 Mar 2009 16:29:10 +0100 Subject: DB connection issue with JackRabbit 1.5.3, JBoss 4.2.3 and mySQL Thread-Topic: DB connection issue with JackRabbit 1.5.3, JBoss 4.2.3 and mySQL Thread-Index: Acmj8HT4kRePCBP7QCawx8a5sjg5dQ== Message-ID: <508F74BC296D494E9A4A983C854E1EA70501BF2AF0@d-ex-01.vva.local> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone, following situation: I have JackRabbit 1.5.3 running under JBoss 4.2.3 (wit= h JCA connector), using a XA DB connection datasource that connects to a my= SQL 5.1.30 instance. So far I have been using either ..bundle.MySqlPersistenceManager or the ..d= b.JNDIDatabasePersistenceManager and configured to get the connection from = the JNDI datasource. OK. Question 1: What's the recommended PM? Is the bundle MySqlPersistenceManage= r any faster or slower than the JNDIDatabasePersistenceManager? The issue now is: Every morning, after a long idle period, the DB connectio= n JackRabbit is holding has been closed, probably by mySQL after the defaul= t period I assume, and JR is not able to recover from that, using either of= the PMs. What can I do? How can I change my configuration so this doesn't = happen anymore? 1. I don't want to increase the mySQL idle timeout! 2. I know the bundle PM has a reconnect feature, but when it tries to do so= , it's throwing exception and complaining about autoCommit not being possib= le for managed connections. Should I use a local-tx datasource instead of t= he XA? 3. With the JNDIDatabasePersistenceManager it just doesn't reconnect and I = need to restart. Question 2: Is there any point of using a container managed datasource, sin= ce it seems JR is using only one connection from it (is this right)? Should= I just configure the DB connection for JR in the repository.xml? I need XA transaction because I have another DB datasource as well as the J= CR datasource and I obviously want the writes to both datasources to commit= together or be rolled back properly. Does configuring the JR connection in the repo xml harm this behavior in an= y way? OK, hope someone can give me some advice. Thanks, Leander VVA Networks GmbH Mario-Leander Reimer Dipl.-Inf. (FH) Teamleitung Publishing Solutions --------------------------------------------------------------------------- VVA Networks GmbH : medien mit zukunft Geisenhausenerstra?e 15-17 81379 M?nchen Deutschland --------------------------------------------------------------------------- Fon: +49 89 2000375-610 Fax: +49 89 2000375-699 Mobil: +49 173 5883541 --------------------------------------------------------------------------- leander.reimer@vva-networks.de www.vva-networks.de ----------------------------------------------------------------------- HRB 33884 D?sseldorf Gesch?ftsf?hrer Rolf Christian Kassel ----------------------------------------------------------------------- Ein Unternehmen der VVA Kommunikation http://www.vva.de ----------------------------------------------------------------------- omnisuite(r) - integrate. automate. communicate. http://www.omnisuite.de ----------------------------------------------------------------------- Diese Nachricht (inklusive aller Anh?nge) ist vertraulich. Sie darf ausschlie?lich durch den vorgesehenen Empf?nger und Adressaten gelesen, kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverz?glich zu informieren und die Nachricht zu l?schen. Jede unerlaubte Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollst?ndig oder teilweise, ist unzul?ssig. This message (including any attachments) is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error please contact the sender (by return E-Mail) immediately and delete this message. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited.