Hello,
How about retrieving it from JNDI?
How about a plugIn (DAOFactory) that retrieves the DataSource via
JNDI and then initializes each DAO with the DataSource?
Regars
marco
-----Original Message-----
From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
Sent: 16 July 2004 10:18
To: Struts Users Mailing List
Subject: Re: About datasource
Hi, after some thinking, I have another problem, ^^
If I am using an Action (which extent the Struts' Action class), I can
get the Datasource by calling getDataSource()
But now I want to write my own data assess object which shouldn't
extent Action, I don't know what way I can get the datasource from the
pool.....
any help??
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]