Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 91067 invoked from network); 27 Apr 2004 16:34:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Apr 2004 16:34:26 -0000 Received: (qmail 68848 invoked by uid 500); 27 Apr 2004 16:34:16 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 68835 invoked by uid 500); 27 Apr 2004 16:34:16 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 68819 invoked from network); 27 Apr 2004 16:34:15 -0000 Received: from unknown (HELO spitfire.ecc.engr.uky.edu) (128.163.144.21) by daedalus.apache.org with SMTP; 27 Apr 2004 16:34:15 -0000 Received: from www by spitfire.ecc.engr.uky.edu with local (Exim 4.30) id 1BIVXG-000PUB-NJ; Tue, 27 Apr 2004 12:34:18 -0400 Received: from dy243162.resnet.uky.edu (dy243162.resnet.uky.edu [128.163.243.162]) by mail.engr.uky.edu (IMP) with HTTP for ; Tue, 27 Apr 2004 12:34:18 -0400 Message-ID: <1083083658.408e8b8aa4852@mail.engr.uky.edu> Date: Tue, 27 Apr 2004 12:34:18 -0400 From: Saravana Kannan To: Apache Torque Users List , jrasmussen@lnxi.com Subject: RE: Multiple databases without JNDI ? References: <961883FD16B5854AA73F31449A3EC8F302248CB8@ntserv01.informativeresearch.com> <1083083659.3014.2.camel@jrasmussen.lnxi.com> In-Reply-To: <1083083659.3014.2.camel@jrasmussen.lnxi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 128.163.243.162 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 Hi. I don't remember exactly what to use... but I know that you should use a object.save(connection) or object.save("database name"). It's either one of these. .. check out the Torque API page. Google it if u cant find it. ~Sarav -- There are 10 kinds of people in the world, those who know binary and those who don't. Quoting Jeff Rasmussen : > How do you access the different DB's with this method? > > Do you just init torque and call object.save()? > > Is there anything special that needs to be done or does Torque > automatically know what DB to save to? > > Thanks, > Jeff Rasmussen > > > > > On Wed, 2004-03-17 at 11:14, Benjamin Yu wrote: > > Yes, it is possible. Just enter multiple dsfactory entries into the > > *runtime* Torque.properties file. > > > > Something like: > > > > torque.database.default=db1 > > > > torque.database.db1.adapter=postgresql > > > torque.dsfactory.db1.factory=org.apache.torque.dsfactory.SharedPoolDataSourc > > eFactory > > torque.dsfactory.db1.pool.maxActive=10 > > torque.dsfactory.db1.pool.testOnBorrow=true > > torque.dsfactory.db1.pool.validationQuery=SELECT 1 > > torque.dsfactory.db1.connection.driver=org.postgresql.Driver > > torque.dsfactory.db1.connection.url=jdbc:postgresql://localhost/db2 > > torque.dsfactory.db1.connection.user=user1 > > torque.dsfactory.db1.connection.password=pw1 > > > > torque.database.db2.adapter=postgresql > > > torque.dsfactory.db2.factory=org.apache.torque.dsfactory.SharedPoolDataSourc > > eFactory > > torque.dsfactory.db2.pool.maxActive=10 > > torque.dsfactory.db2.pool.testOnBorrow=true > > torque.dsfactory.db2.pool.validationQuery=SELECT 1 > > torque.dsfactory.db2.connection.driver=org.postgresql.Driver > > torque.dsfactory.db2.connection.url=jdbc:postgresql://localhost/db1 > > torque.dsfactory.db2.connection.user=user2 > > torque.dsfactory.db2.connection.password=pw2 > > > > > > -----Original Message----- > > From: Bogdan Vatkov [mailto:bvatkov@globaltech-bg.com] > > Sent: Wednesday, March 17, 2004 10:10 AM > > To: TORQUE_LIST > > Subject: Multiple databases without JNDI ? > > > > > > Hi guys, > > Is it possible to configure multiple databases without using JNDI ? > > If yes how the build.properties will look like ? > > > > regards, > > bogdan > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > > For additional commands, e-mail: torque-user-help@db.apache.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org