Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 1298 invoked from network); 20 Apr 2006 13:44:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 13:44:26 -0000 Received: (qmail 30880 invoked by uid 500); 20 Apr 2006 13:44:16 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 30369 invoked by uid 500); 20 Apr 2006 13:44:13 -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 30203 invoked by uid 99); 20 Apr 2006 13:44:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 06:44:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.226.175.105] (HELO tomts31-srv.bellnexxia.net) (209.226.175.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 06:44:09 -0700 Received: from [192.168.1.62] ([67.69.13.58]) by tomts31-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060420134342.HROC9593.tomts31-srv.bellnexxia.net@[192.168.1.62]> for ; Thu, 20 Apr 2006 09:43:42 -0400 Message-ID: <4447900D.4070402@idilia.com> Date: Thu, 20 Apr 2006 09:43:41 -0400 From: Eustache User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Accept-Language: en-us, en MIME-Version: 1.0 To: torque-user@db.apache.org Subject: using unknown number of databases having the same "structure" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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-components/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: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org