permaculture playing cards
The moose likes JDBC and Relational Databases and the fly likes javax.sql.DataSource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "javax.sql.DataSource" Watch "javax.sql.DataSource" New topic


Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
If the above class is just an interface, how is it that I can specify javax.sql.DataSource in tomcat's server.xml file as follows

[ May 16, 2002: Message edited by: Chu Tan ]
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
I'm not an expert with the tomcat config files but from what I know the Resource tag specifies a resource to be stored/available from a JNDI lookup. Just like in RMI, the type of the object returned is the type of the interface that the object implements.
hope that helps

I agree. Here's the link:
subject: javax.sql.DataSource
jQuery in Action, 3rd edition