Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 6469 invoked from network); 5 Jul 2007 18:15:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 18:15:06 -0000 Received: (qmail 38376 invoked by uid 500); 5 Jul 2007 18:08:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38340 invoked by uid 500); 5 Jul 2007 18:08:28 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 38330 invoked by uid 99); 5 Jul 2007 18:08:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 11:08:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 11:08:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BBA137141EB for ; Thu, 5 Jul 2007 11:08:04 -0700 (PDT) Message-ID: <9935158.1183658884761.JavaMail.jira@brutus> Date: Thu, 5 Jul 2007 11:08:04 -0700 (PDT) From: "Laura Stewart (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2851) Corrections to client DataSource access example in the Server and administration guide In-Reply-To: <11546470.1182371005971.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laura Stewart updated DERBY-2851: --------------------------------- Attachment: derby2851_2.diff Attaching updated patch. > Corrections to client DataSource access example in the Server and administration guide > -------------------------------------------------------------------------------------- > > Key: DERBY-2851 > URL: https://issues.apache.org/jira/browse/DERBY-2851 > Project: Derby > Issue Type: Bug > Reporter: Kathey Marsden > Assignee: Laura Stewart > Priority: Minor > Attachments: derby2851.diff, derby2851_2.diff, radminnsdatasourcexmp.html > > > http://db.apache.org/derby/docs/dev/adminguide/radminnsdatasourcexmp.html > Shows an example for getting a connection through a DataSource by setting databaseName to "mydb;create=true". It should be changed to use "mydb" and use setCreateDatabase("create"). Also the comment that user/password are required is not correct. > I think the getDS method can be removed and the example can just look like: > org.apache.derby.jdbc.ClientDataSource ds = > new org.apache.derby.jdbc.ClientDataSource(); > // DatabaseName can include Derby URL Attributes > ds.setDatabaseName("mydb"); > ds.setCreateDatabase("create"); > ds.setUser("user"); > ds.setPassword("mypass"); > // The host on which Network Server is running > ds.setServerName("localhost"); > // port on which Network Server is listening > ds.setPortNumber(1527); > Connection conn = ds.getConnection(); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.