Register / Login
Win a copy of
Design for the Mind
this week in the
posted 11 years ago
My web application has the following flow from the
Servlet <--> Controller Beans <--> Application Beans <-->
layer <--> DB
I am bundling all components in jar file and deploying it as single web
application. Currently, I am not using any
for any of the above components implementation.
Now I have a clarification. In above flow, can the Datasource JNDI configured in Apache
Server be used by JDBC Layer ? Will this approach work?
Or will I have to acquire Connection object from Datasource at Servlet Layer and pass it all the way down to JDBC Layer through controller beans and application beans?
It is sorta covered in the
JavaRanch Style Guide
Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context
How to get the datasource from Bean through deployment descriptor
Not Finding DataSource in JNDI Tree
SCEA Part II - Design Question
Spring Mvc 404 error