This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
The servlet container has nothing to do with JDBC. That is all contained in the jar file(s) that constitute the Driver implementation you are using. So long as the Driver files are on the classpath it should work fine.