This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Datasource JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Datasource JNDI" Watch "Datasource JNDI" New topic
Author

Datasource JNDI

Pearlo Muthukumaran
Ranch Hand

Joined: Sep 17, 2002
Posts: 79
Hi,

My web application has the following flow from the servlet layer:

Servlet <--> Controller Beans <--> Application Beans <--> JDBC layer <--> DB

I am bundling all components in jar file and deploying it as single web
application. Currently, I am not using any EJB for any of the above components implementation.

Now I have a clarification. In above flow, can the Datasource JNDI configured in Apache Tomcat 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?

Regards
Muthu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Datasource JNDI
 
Similar Threads
How to get the datasource from Bean through deployment descriptor
Not Finding DataSource in JNDI Tree
Spring Mvc 404 error
Errored while looking up datasource: PWC4216: Name jdbc is not bound in this Context
SCEA Part II - Design Question