how to configure JNDI for mySQL database?
I am using SUn Java studio Enterprise to write portal/web application. I use MYSQL and mySQL-Connector/J driver. If I use JDBC, I can connect .
But if I change to JNDI,:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/portaldb");
conn = ds.getConnection();
I cant get DataSource or Connection. I noticed there are some option in the tool to configure connection pool, I tried and it seemed correct, but I still dont get DataSource or Connection.
Can anybody help?
Thanks!

