What the hell is <resource-ref> in web.xml used for ?

My imagination is as follows, please confirm or deny it.


<resource-ref> is part of servlet spec, not tomcat spec.
context.xml and it's resource declaration is private concept of tomcat, not
described by any external specificatin, jsr, etc.


<resource-ref> says, that in your webapp you can lookup such type by such
name with jndi.
in case of tomcat application can run without it, <Resource ...> in
context.xml is sufficient, but in other servlet containers it can be
different, and they may require <resource-ref> declaration.

regards
Jakub

Reply via email to