________________________________________ From: Jakub 1983 [jjaku...@gmail.com] Subject: <resource-ref> in web.xml
when I define database conn in context.xml, resource-ref is not needed at all, so what is it actually for ? ************************************************************** You need something to lookup from your Java src file: Context ctx = new InitialContext(); ds = (DataSource) ctx.lookup("java:comp/env/jdbc/whatever_you_called_this_in_resource-ref"); (res-ref-name that is) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org