a) your res-ref-name needs to start with java:comp/env b) make sure you also bind that reference to your jdbc name. WSAD is very nice in doing this, but you otherwise likely need to do it with the AAT. It will end up in your ibm-web-bnd.xmi file.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
a) your res-ref-name needs to start with java:comp/env
Really? Every example I found doesn't have this syntax in either the web.xml or the sun-web.xml. It DOES have this syntax when you try to get it from the Context...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.