db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Beier" <mbe...@VPS.DE>
Subject AW: Multiple databases without JNDI ?
Date Wed, 17 Mar 2004 18:21:20 GMT
you could also try an other approach by using torque with a default configuration and use
all retrieve and save methods with a selfmade connection.
eg. if you have the same databases (same type (eg. oracle)) and the same databaseschema everywhere,
you configure torque for only one, and make the other connections by your code.
so you have fully dynamic databaseconnections with the comfort of torque.
you need then to call save(con) instead of save()

but you have to pay attention to properly close the connections yourself.
i use this for a special configuration where i only read and write one table in many diffent
databases with the same schema.
this may not work with more special querys or updates.

Michael Beier

vps Video Print Systeme GmbH 
Michael Beier
Carl-Zeiss-Straße 2 
76275 Ettlingen 
Tel.: +49 (0) 7243 5488 0 
Fax: +49 (0) 7243 5488 11 
e-mail:    mbeier@vps.de <mailto:mbeier@vps.de>  
internet:  http://www.vps.de <http://www.vps.de/> 


-----Ursprüngliche Nachricht-----
Von: Bogdan Vatkov [mailto:bvatkov@globaltech-bg.com]
Gesendet: Mittwoch, 17. März 2004 19:10
Betreff: 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 ?


To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message