This content has been marked as final.
Show 1 reply
-
1. Re: JDBC Connection
jae77 Mar 26, 2004 9:51 AM (in response to nitro)the datasource is already "connected" when it deploys, you just need to ask for a connection.
InitalContext context = new InitialContext(); Datasource ds = (DataSource) context.lookup("java:/NukesDS"); Connection conn = ds.getConnection();
of course, you'll need to handle any exceptions those methods may throw, etc, but that should be enough to get you started.