• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Datasource JNDI

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic