• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between javax.sql.DataSource and org.apache.tomcat.jdbc.pool.DataSource

 
Ramu Valivarthi
Ranch Hand
Posts: 37
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me the basic differences between javax.sql.DataSource and org.apache.tomcat.jdbc.pool.DataSource.
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
A google search for "org.apache.tomcat.jdbc.pool.DataSource" led me to org.apache.tomcat.jdbc.pool.DataSource.html.
It mentions that it is an implementation of javax.sql.DataSource Interface. javax.sql.DataSource is an Interface and your appserver or webserver or JDBC service provider would have to implement it to give you the JDBC connections and facilitate the JNDI lookup for location transparency.

Regards,
Amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic