I'm using multiple databases with Torque. Basically each database should have its own 
schema file (wtih different database name) and you run the torque om task to generate 
all the classes for all the tables. In runtime Torque.properties file, you configure  
different database connection url, username/password etc. In case table name conflicts 
among different databases, what I did is to put different database under its own 
package (maybe there are better methods.)

Howard Lin

> -----Original Message-----
> From: Carlos Olmos [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 04, 2003 4:14 PM
> To: torque mailing list
> Subject: Using mutiple databases.
> 
> 
> Hello list:
> 
>    Has someone used more than one database with torque?
> 
>   My problem is I have a database in Postgres, working fine 
> with torque. But now I also need to extract data from an 
> Oracle instance.
>  Is there a way to configure my application's torque settings 
> to use both databases?.
> 
> The documentation states: 
> torque.database.default = Torque has the ability to use 
> multiple databases. This command specifies which database is 
> to be used as the default.
> 
> A small howto would be greate!!!
> 
> Thanks in advanced.
> 
> Carlos Olmos.
> 
> 
> Need a new email address that people can remember
> Check out the new EudoraMail at
> http://www.eudoramail.com
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to