Before I answer this, it would be nice to know more about
how you are defining "using multiple databases".  In 
particular, are you talking about multiple separate 
instances of your code, each using different DB's (e.g
multiple web applications) or a single monolithic code
base that does this (e.g a single web application or
standalone application).

> -----Original Message-----
> From: Eustache [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 20, 2006 9:44 AM
> To: [email protected]
> Subject: using unknown number of databases having the same "structure"
> 
> 
> Hi, maybe somebody can give me an idea or point me to some resource:
> I have several databases having the same structure but the number of 
> databases and their name are not known at design time (I have another 
> database to remember all that).
> I would like to be able to use Torque generated classes with 
> parameters 
> at runtime (db name, host, user, etc.).
> Of course I would like to generate only one bunch of classes for all 
> these databases since they have the same structure.
> I looked at DB Schema support 
> http://db.apache.org/torque/releases/torque-3.2/docs-all-compo
nents/other-howtos/schema-howto.html
but I don't think it is what I want.
I also looked at "using Torque with multiple databases" but it is only 
part of the answer because first I would like to make this configuration

dynamic (at runtime) and second the generated classes sould use a 
"parameterized" database name (not sure there).
Any ideas ?
Thx very much,

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


Duke CE Privacy Statement
Please be advised that this e-mail and any files transmitted with it are 
confidential communication or may otherwise be privileged or confidential and 
are intended solely for the individual or entity to whom they are addressed.  
If you are not the intended recipient you may not rely on the contents of this 
email or any attachments, and we ask that you  please not read, copy or 
retransmit this communication, but reply to the sender and destroy the email, 
its contents, and all copies thereof immediately.  Any unauthorized 
dissemination, distribution or copying of this communication is strictly 
prohibited.



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

Reply via email to