newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
uot; maxActive="4"/> --- web.xml --- http://java.sun.com/dtd/web-app_2_3.dtd";> http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/20 01/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.co

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-01 Thread Darryl Wagoner
ith same result. thanks -- Darryl Wagoner - WA1GON "Evil triumphs when good men do nothing." - Edmund Burke [1729-1797] Join the TrustedQSL mailing list. An Open Source solution. Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] http://

Re: newbie having problems with MySQL JDBC/JNDI Datasource example

2005-03-02 Thread Darryl Wagoner
is jdbc/TestDB, so must the other. --David -- Darryl Wagoner - WA1GON "Evil triumphs when good men do nothing." - Edmund Burke [1729-1797] Join the TrustedQSL mailing list. An Open Source solution. Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTE

getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
(Exception ne) { ne.printStackTrace(); } %> -- Darryl Wagoner - WA1GON "Evil triumphs when good men do nothing." - Edmund Burke [1729-1797] Join the TrustedQSL mailing list. An Open Source solution. Post message: [EMAIL PROTECTED] Subscribe: [EMAIL P

Re: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
"); rofDS = (javax.sql.DataSource)ctx.lookup("/rofDB"); out.println("after lookup"); } catch (Exception ne) { out.println(ne.getMessage()); } %> -- Darryl Wagoner - WA1GON "Evil triumphs when good men do nothing." - Edmund Burke [1729-

Re: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Peter Johnson wrote: As shown in the examples Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/rofDB"); Thanks for the quick reply! That has solved th