Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 19310 invoked from network); 12 Apr 2006 15:45:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 15:45:42 -0000 Received: (qmail 83647 invoked by uid 500); 12 Apr 2006 15:45:21 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 83629 invoked by uid 500); 12 Apr 2006 15:45:21 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 83618 invoked by uid 99); 12 Apr 2006 15:45:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:45:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of helgew@grajagan.org designates 66.159.194.18 as permitted sender) Received: from [66.159.194.18] (HELO mail.grajagan.org) (66.159.194.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:45:20 -0700 Received: from [192.168.0.120] (server.activx.com [63.196.131.66]) (authenticated bits=0) by mail.grajagan.org (8.13.6/8.13.4) with ESMTP id k3CFirBO018575 for ; Wed, 12 Apr 2006 08:44:53 -0700 Mime-Version: 1.0 (Apple Message framework v746.3) Content-Transfer-Encoding: 7bit Message-Id: <5F274DED-2D53-46A5-A104-F6F300233219@grajagan.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: torque-user@db.apache.org From: Helge Weissig Subject: using a second database Date: Wed, 12 Apr 2006 08:44:52 -0700 X-Mailer: Apple Mail (2.746.3) X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (mail.grajagan.org [66.159.194.18]); Wed, 12 Apr 2006 08:44:53 -0700 (PDT) X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on localhost X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bluejay.grajagan.org X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,SPF_FAIL autolearn=no version=3.1.0 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am trying to use a second database but am having trouble accessing it (or configuring it, not sure). Below is what I have so far, most of it taken straight from the 3.2 distribution. When I ask Torque to give me a connection to "oracle", I get the mysql db connection. Also and unrelated, I use the generator to create the mysql DB and it seems that I need to use the same name in my DB schema as I do in the Torque.properties file for runtime. Is that correct? Is there a way around it? Having a group of developers develop on their own sandbox dbs and then switching the code to production would be a little easier if one would only have to change that DB name in one place and not in two and on several lines... thanks so much for any insight!! h. # defaults torque.applicationRoot = ${applicationRoot} # do I need this one??? torque.defaults.pool.maxWait = 10000 torque.defaults.pool.maxIdle = 8 torque.defaults.pool.maxActive = 10 torque.defaults.pool.timeBetweenEvictionRunsMillis= 300000 torque.defaults.pool.minEvictableIdleTimeMillis = 3600000 torque.defaults.connection.driver = com.mysql.jdbc.Driver torque.defaults.connection.url = jdbc:mysql://localhost:3306/test torque.defaults.connection.user = torque.defaults.connection.password = # first DB, works like a charm torque.database.default=test torque.database.test.adapter=mysql torque.dsfactory.test.factory=org.apache.torque.dsfactory.SharedPoolData SourceFactory torque.dsfactory.test.pool.maxIdle=8 torque.dsfactory.test.pool.maxActive=10 torque.dsfactory.test.pool.testOnBorrow=true torque.dsfactory.test.pool.validationQuery=SELECT 1 torque.dsfactory.test.connection.driver = com.mysql.jdbc.Driver torque.dsfactory.test.connection.url = jdbc:mysql://localhost:3306/test torque.dsfactory.test.connection.user = torque.dsfactory.test.connection.password = # second DB torque.database.oracle.adapter=oracle torque.dsfactory.oracle.factory=org.apache.torque.dsfactory.SharedPoolDa taSourceFactory torque.dsfactory.oracle.pool.maxIdle=8 torque.dsfactory.oracle.pool.maxActive=10 torque.dsfactory.oracle.pool.testOnBorrow=true torque.dsfactory.oracle.pool.validationQuery=SELECT 1 torque.database.oracle.driver=oracle.jdbc.driver.OracleDriver torque.database.oracle.url=jdbc:oracle:thin:@sunfire:1521:actx torque.database.oracle.username= torque.database.oracle.password= torque.database.oracle.maxConnections=4 torque.database.oracle.expiryTime=3600000 torque.idbroker.clever.quantity=true torque.manager.useCache = true --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org