OK, I have created a database and its URL is :
jdbc:mysql://localhost:3306/ToddDB
and the code is :
correct my if I am wrong but I don't think the code will work because DataSource
is an interface and can't instatiate it using new.
assuming the code is right, what should I do ?
1. run the class for one time and only one.
2. to use this datasource :
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/ToddDB");
thanks again.
[ August 11, 2004: Message edited by: John Todd ]