Further JDBC nightmares...
Well I did think that Weblogic deployment might be easier... in a way it was but I still had a nightmare getting mu DataSource visible from the JSTL SQL tags that I've got coded. After much going round the houses, using the Weblogic admin console (since I naively thought that I could just use that)... I think it turned out that I needed a resource-ref element and/or a context-param element in the web.xml. Not quite sure anymore (and I can't be arsed to go back and retry it all), but I think it was the resource-ref that was missing, or wrong.
It ended up like this:
<resource-ref>
<res-ref-name>myDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Labels: java










