This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "javax.sql.DataSource" Watch "javax.sql.DataSource" New topic
Author

javax.sql.DataSource

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
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
Chu
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


Dave
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax.sql.DataSource