Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.sql.DataSource

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic