my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: javax.sql.DataSource
 
Similar Threads
tomcat web application folder setting
DataSource
Context in Virtual Hosts
Configuration multiple resource DB.
Configuring DataSource on Tomcat5.0