Return-Path: Delivered-To: apmail-jakarta-jetspeed-user-archive@apache.org Received: (qmail 51717 invoked from network); 19 Mar 2003 20:55:23 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 19 Mar 2003 20:55:23 -0000 Received: (qmail 21870 invoked by uid 97); 19 Mar 2003 20:57:10 -0000 Delivered-To: qmlist-jakarta-archive-jetspeed-user@nagoya.betaversion.org Received: (qmail 21863 invoked from network); 19 Mar 2003 20:57:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 19 Mar 2003 20:57:10 -0000 Received: (qmail 47551 invoked by uid 500); 19 Mar 2003 20:54:32 -0000 Mailing-List: contact jetspeed-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Users List" Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@jakarta.apache.org Received: (qmail 47503 invoked from network); 19 Mar 2003 20:54:31 -0000 Received: from vwall.nyc.gov (161.185.1.3) by daedalus.apache.org with SMTP; 19 Mar 2003 20:54:31 -0000 Received: from vwall.nyc.gov (localhost [127.0.0.1]) by vwall.nyc.gov (8.12.8/8.12.8) with ESMTP id h2JKsTod008481 for ; Wed, 19 Mar 2003 15:54:29 -0500 (EST) Received: from nbvrnts16.probation.nycnet (probationsmtp [10.132.108.7]) by vwall.nyc.gov (8.12.8/8.12.8) with ESMTP id h2JKsCPi007984 for ; Wed, 19 Mar 2003 15:54:16 -0500 (EST) Received: by nbvrnts16.probation.nycnet with Internet Mail Service (5.5.2653.19) id ; Wed, 19 Mar 2003 15:54:04 -0500 Message-ID: <2070AF841197244B9A824996F4A5746D5663D7@nbvrnts16.probation.nycnet> From: "McIntyre, Kevin" To: "'Jetspeed Users List'" Subject: RE: Multiple Torque Adapters. Date: Wed, 19 Mar 2003 15:54:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Here is my torque.properties file. Whatever I put in the default breaks the other code, so if I list jetspeed, the portal works fine and my "arts" classes don't work. If I list "arts" as the default then jetspeed won't work. I have to use the "JndiDataSourceFactory" because informix has a problem with "TorqueDataSourceFactory"... regardless I'm confused how to get both up and working simulatenously. ------------------------------------ torque.applicationRoot = . torque.database.default=???? torque.database.arts.adapter=informix torque.dsfactory.arts.factory=org.apache.torque.dsfactory.JndiDataSourceFact ory torque.dsfactory.arts.jndi.path=java:comp/env/jdbc/InformixXaDS torque.dsfactory.arts.jndi.java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory torque.dsfactory.arts.jndi.java.naming.factory.url.pkgs = org.jboss.naming:org.jnp.interfaces torque.database.jetspeed.adapter=mysql torque.dsfactory.jetspeed.factory=org.apache.torque.dsfactory.TorqueDataSour ceFactory torque.dsfactory.jetspeed.pool.defaultMaxConnections=10 torque.dsfactory.jetspeed.pool.maxExpiryTime=3600 torque.dsfactory.jetspeed.pool.connectionWaitTimeout=10 torque.dsfactory.jetspeed.connection.driver = org.gjt.mm.mysql.Driver torque.dsfactory.jetspeed.connection.url = jdbc:mysql://10.132.108.179:3306/jetspeed torque.dsfactory.jetspeed.connection.user = [user] torque.dsfactory.jetspeed.connection.password = [password] torque.database.logInterval=0 torque.idbroker.cleverquantity=true torque.manager.useCache = true ----------------------------------------- -----Original Message----- From: Michael Rothrock [mailto:michael@michaelrothrock.com] Sent: Wednesday, March 19, 2003 3:37 PM To: Jetspeed Users List Subject: Re: Multiple Torque Adapters. You have to add entries for each of the dbs. As an example, here are the relevant entries from my Torque.properties: torque.database.zb_content.adapter=postgresql torque.database.lyris.adapter=postgresql torque.dsfactory.zb_content.factory=\ org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory torque.dsfactory.zb_content.pool.defaultMaxActive=10 torque.dsfactory.zb_content.pool.testOnBorrow=true torque.dsfactory.zb_content.pool.validationQuery=SELECT 1 torque.dsfactory.zb_content.connection.driver = org.postgresql.Driver torque.dsfactory.zb_content.connection.url = jdbc:postgresql://localhost/zb_content torque.dsfactory.zb_content.connection.user = [user] torque.dsfactory.zb_content.connection.password = [password] torque.dsfactory.lyris.factory=\ org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory torque.dsfactory.lyris.pool.defaultMaxActive=10 torque.dsfactory.lyris.pool.testOnBorrow=true torque.dsfactory.lyris.pool.validationQuery=SELECT 1 torque.dsfactory.lyris.connection.driver = org.postgresql.Driver torque.dsfactory.lyris.connection.url = jdbc:postgresql://localhost/lyris torque.dsfactory.lyris.connection.user = [user] torque.dsfactory.lyris.connection.password = [password] In my case, I maintain two separate torque directories (from the standalone Torque distribution), one for each DB. I then link the source directory from one into the other, and use that as the "master" to compile all of my source files, which I then deploy to my jetspeed installation. I do it this way for a variety of reasons that may not be relevant in your case--ymmv. -- Michael On 3/19/03 12:08 PM, "McIntyre, Kevin" wrote: > > Sorry to ask again, but I'm lost in the woods. > > Below shows 2 adapters that work individually in jetspeed when marked as > default. > > Is there anyway to utilize both in jetspeed? > > ---------------------------------------------------------------------------- > > torque.applicationRoot = . > > torque.database.default=db1 > torque.database.db1.adapter=informix > .... > .... > > torque.database.jetspeed.adapter=mysql > .... > .... > > > > -------------------------------------- > > > Kevin. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org