G
Grzegorz Stasica
Hi',
Let's make 3 layer: presentation,business object and DAO. Having in mind
principle no layer should know how the other works I've question
regarding DAO layer. Let's assume I've a CustomerDAO object which
resposibility is limited to talking with underlying DB. My question or
I'd say ignorance is how to get a connection in DB layer since all
information about parameters are stored in application context
(struts-config.xml). Surely I can get DataSource object from JNDI but
whouldn't it be breaking a base principle(the above solution I've seen
on apache.org web site).
I've somebody will explain it to me
Please don't slam me to much
Let's make 3 layer: presentation,business object and DAO. Having in mind
principle no layer should know how the other works I've question
regarding DAO layer. Let's assume I've a CustomerDAO object which
resposibility is limited to talking with underlying DB. My question or
I'd say ignorance is how to get a connection in DB layer since all
information about parameters are stored in application context
(struts-config.xml). Surely I can get DataSource object from JNDI but
whouldn't it be breaking a base principle(the above solution I've seen
on apache.org web site).
I've somebody will explain it to me
Please don't slam me to much