My code like this:
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("jdbc/OracleDs");
Connection conn = ds.getConnection();
i had already defined the the jdbc/OracleDs in web.xml as:
<resource-ref>
<res-ref-name>jdbc/OracleDs</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
--
You received this message because you are subscribed to the Google Groups "Jaxcent" group.
To post to this group, send email to jaxcen...@googlegroups.com.
To unsubscribe from this group, send email to jaxcentgroup...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jaxcentgroup?hl=en.