Howdy,
Senor Shneyderman's answer was fully correct.

>So, according to the Servlet spec, I need to declare my resource needs
in
>web.xml; then it's up to the container to provide those resources, and
the

Yes.

>spec says that is configured via <ResourceParams/> in the server's
>configuration?  Or is that bit Tomcat specific as well?

No, that bit is tomcat-specific (like everything in server.xml).  Every
server has its own configuration syntax.  All of them will resolve your
web.xml declarations as required by the servlet specification.

>I think the fact that I was using a GlobalNamingResource was clouding
the
>issue; if I wanted this DataSource to be available only to this app, I
>could
>supply declaration in web.xml, and configuration in the <Context> OR
both
>the resource declaration and configuration in the <Context> (but the
latter
>would be non-portable).  Is this correct?

Exactly right.  In fact I would suggest the middle approach (declaration
in web.xml, configuration in <Context>) unless you have an overriding
reason not do it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to