This content has been marked as final.
Show 1 reply
-
1. Re: datasource not bound
tbfmicke Sep 8, 2002 10:34 AM (in response to migs)
> I am trying to obtain this resource from a servlet
> running on the same VM as JBOSS via ctx.lookup
> ("pfm_dev") where I get a "pfm_dev" not bound error
> reported.
Entries defined in the web.xml is always prefixed
with java:/comp/env. So a lookup of
ctx.lookup("java:/comp/env/pfm_dev")
should succeed
Regards
> WEB-INF/web.xml
> <resource-ref>
> <res-ref-name>pfm_dev</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>