
Just placing this up here so I remember it:
To create a connection pool / jdbc resource under Sun One Web Server 6.1.
This is heavily influenced by: this link
Step 1 -- Set up the connection pool via the web admin interface
Step 2 -- create your JDBC resource via the web admin interface
Step 3 -- edit your web.xml file
Example
jdbc/exampleDB
javax.sql.DataSource
Container
Step 4 -- edit your sun-web.xml file
jdbc/example
exampleJNDIName
Step 5 -- setup your test code
javax.naming.InitialContext ic = new javax.naming.InitialContext();
DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/webdevdata");
dbConn = ds.getConnection();
And you are done!