Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30091DBDE for ; Fri, 31 Aug 2012 15:24:51 +0000 (UTC) Received: (qmail 82458 invoked by uid 500); 31 Aug 2012 15:24:50 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 82426 invoked by uid 500); 31 Aug 2012 15:24:50 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 82418 invoked by uid 99); 31 Aug 2012 15:24:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 15:24:50 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [98.139.44.144] (HELO nm17.access.bullet.mail.sp2.yahoo.com) (98.139.44.144) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 31 Aug 2012 15:24:42 +0000 Received: from [98.139.44.104] by nm17.access.bullet.mail.sp2.yahoo.com with NNFMP; 31 Aug 2012 15:24:21 -0000 Received: from [98.139.44.79] by tm9.access.bullet.mail.sp2.yahoo.com with NNFMP; 31 Aug 2012 15:24:21 -0000 Received: from [127.0.0.1] by omp1016.access.mail.sp2.yahoo.com with NNFMP; 31 Aug 2012 15:24:21 -0000 X-Yahoo-Newman-Id: 364341.12667.bm@omp1016.access.mail.sp2.yahoo.com Received: (qmail 97272 invoked from network); 31 Aug 2012 15:24:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=5fBfwS26AphArfq/uvCA5aFIKWqpbz72aXcERG5c/BwE2FtXSX3n3K512ZKFIdoM9pZ1b4tvN9cIhUn+Qcx+gHfVy/T8AyHa3c9+Fi0FEwu8/zrQ33yz3iEPrvvecWUPVNygX4Z1ZiwmlOeKPGQcK16F5QTFZG7EL5XKXL0mSrE= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1346426660; bh=svAQyKoXbwX0/vE4kyXFMwf5xMTeXlnWoPoCCGKe9ws=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type; b=siovjj7PWEw5m69nbKcNAKAKXh4T3CuoXJbUljYyB4HJy+X+iauXsWuiRUHk4g34+QGWJ6GKgdasz0HliJGCRO2jN5Q80gkesSQeHSuGi+iN0atyt0gVLK72Zxi4LIipykvzNYv6qrKcxrN4Y7fzwblb2ysLKLI69Xqh7Iy+N10= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rq7qmzEVM1n0qXRQXkp52r0P8hCfvPVwlRSE.lWZNKmswaM J5gsl.cT7h.BFLp_SN0zCxwzAkW8v5UMVNd19mvzur.5Smfr46SJTltW58Ir xQF1QQBMqj1hzEw_sedUvh.peSqYMy_iPvUu50CJeorAfhaORO69bPSWAjDb ukqvfgKsg5iUVj8eElUzs42y_y2mtN1FpFz9ElF0IAkdKNmcBdFfdLV0_g0m 1IO85cIa5htLjn7yD0XbXrFesoWq2rRld3l5Xhx6hRNduDrRabPanVjZuGlf bOEI9W0C.nACgxfS9m3Llix9wKsaa2Ea5evmoza3vIe5vHNy9c4EXT8uUzgf jCkIslvpbJCNAfrP9eno7AP6zh4MBUVwGOWskegAvi_7VYNqDifrJacx9n53 zpduIq.1rLAAVnDJHGlO_EHPZEwRXiar4IUtghg2Tj8n8egau4p57l3FEHLd 5bw.EmqNW8C75RbwCd2ceK8rVEIdyPEZ1hXd2wr6OuConyiLEfYtMMCEXPw1 JiJFpMYF6ptkLSfELLzPJhf_Z4EvF0yrNVWima7_b X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- Received: from [192.168.1.71] (kmarsdenderby@108.231.78.45 with plain) by smtp115.sbc.mail.ne1.yahoo.com with SMTP; 31 Aug 2012 08:24:20 -0700 PDT Message-ID: <5040D6CA.1020400@sbcglobal.net> Date: Fri, 31 Aug 2012 08:22:50 -0700 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: Derby Discussion Subject: Re: Get a "read-only" connection using Derby EmbeddedDataSource40 References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------050403050908000107030306" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------050403050908000107030306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 8/31/2012 7:05 AM, Alain Kuchta wrote: > > Hello all, > > I've actually found an answer to my own question in the Derby > Reference Manual. > > The java.sql.Connection method "setReadOnly(boolean)" is supported and > performs as I desired. > > Perhaps someone else will found this snippet useful. > One word of caution: While Connection.setReadOnly works fine for Embedded. There is a long standing issue with the call with Client: https://issues.apache.org/jira/browse/DERBY-911 --------------050403050908000107030306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 8/31/2012 7:05 AM, Alain Kuchta wrote:

Hello all,

 

I’ve actually found an answer to my own question in the Derby Reference Manual.

The java.sql.Connection method “setReadOnly(boolean)” is supported and performs as I desired.

 

Perhaps someone else will found this snippet useful.

 


One word of caution: While Connection.setReadOnly works fine for Embedded.   There is a long standing  issue with the call with Client:
https://issues.apache.org/jira/browse/DERBY-911


--------------050403050908000107030306--