You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Trevor Miller <ub...@gmail.com> on 2006/09/27 09:20:08 UTC

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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: Getting a DataSource

Posted by Greg Monroe <Gr...@DukeCE.com>.
I think you can do this via:

Torque.getInstance().getDataSourceFactory(DBName).
     					getDataSource()


> -----Original Message-----
> From: Trevor Miller [mailto:ub3rg0th@gmail.com] 
> 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: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
> 
> 

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: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org