Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 17722 invoked from network); 31 Oct 2003 18:19:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Oct 2003 18:19:28 -0000 Received: (qmail 78049 invoked by uid 500); 31 Oct 2003 18:19:19 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 78031 invoked by uid 500); 31 Oct 2003 18:19:19 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 78018 invoked from network); 31 Oct 2003 18:19:18 -0000 Received: from unknown (HELO localhost.localdomain) (208.185.179.4) by daedalus.apache.org with SMTP; 31 Oct 2003 18:19:18 -0000 Received: from localhost (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 6C99D43493 for ; Fri, 31 Oct 2003 10:19:22 -0800 (PST) Subject: Re: Configuring pools - how? From: John McNally To: Apache Torque Developers List In-Reply-To: <3F9E38A5.108@sharp.fm> References: <3F9E38A5.108@sharp.fm> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 Date: 31 Oct 2003 10:19:22 -0800 Message-Id: <1067624362.1834.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N >From the howto: JndiDataSourceFactory This factory is used if the DataSource is to be available via jndi. It is possible to use this factory to deploy a DataSource into jndi, but in many cases for using this factory the DataSource is already deployed. This factory is specified with the following property: torque.dsfactory.bookstore.factory=org.apache.torque.dsfactory.JndiDataSourceFactory Using pre-configured pool If a pool is known to already be available via jndi, only one more property is required. torque.dsfactory.bookstore.jndi.path=jdbc/bookstore which covers your personal best way to configure. It is definitely a valid option. Others are equally valid though and I think many users who only need the pool to be used by torque, just use torque's built in configuration such as that shown in the SharedPoolDataSource section. So the order of the options implies some preference, but I don't think there is any reason to specify that one is preferred over the other. john mcnally On Tue, 2003-10-28 at 01:36, Graham Leggett wrote: > Hi all, > > Having read the pools howto in the docs from an end user point of view, > I can say they do not answer the question "how to". > > Specifically, it highlights a number of ways in which pools can be > configured, but neglects to mention clearly the recommended way to > configure pools. > > In addition, it seems that config from both the bookshop example, and > config from Scarab have been mixed together in the section marked > "Tomcat example of external configuration/binding", which has confused me. > > It would seem to me that the best way to configure the pool, is to let > the container create the pool and make it available. The howto neglects > to mention though how the Torque singleton should be initialised in this > case: Torque.init(). > > Is it possible to make the docs clearer? > > Regards, > Graham > -- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org