I think you can do this via:
Torque.getInstance().getDataSourceFactory(DBName).
getDataSource()
> -----Original Message-----
> From: Trevor Miller [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 27, 2006 3:20 AM
> To: Apache Torque Developers List
> Subject: Getting a DataSource
>
> Hi All,
>
> I'm using Torque 3.2 and was wondering if there is a way to
> get Torque to return a DataSource instance, this will be
> useful for creating a DatabaseConfiguration from
> commons-configuration.
>
> Kind Rgeards,
> Trevor
>
> ---------------------------------------------------------------------
> 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]