I am trying to get a Data Source to work with Tomcat 4 and JSDK 1.4-beta. I understand that the JSDK-1.4 has jini included. My error is Data Source not Found. What do I need to do to get Tomcat 4 to connect to DB 7.2 using a data source? Here is the relevant servlet code. (The code compiles fine).

 

Tom K.

 

import javax.servlet.*;

import javax.naming.* ;

import java.sql.* ;

import javax.sql.DataSource ;

 

public class SimpleDigest extends HttpServlet {

private DataSource ds ;

////private String fsName = "jdbc/pjtutorial/db2";

private String fsName = "TEST";

 

private String querySQL = "SELECT id, title, author FROM digest" ;

Reply via email to