When I set up a db resource in web.xml and create it, for some reasons
it has null's in its attributes (such as username, url, driverClass,
..).

But when I set up the same resource in server.xml, it works fine.

>From the documentation it wasn't clear to me if both need to be set up
the same way. i.e. I use

<Resource name=X.../>
<ResourceParams name=X>
<parameter> ..... </parameter>
</ResourceParams>

in server.xml or web.xml, and then create a reference to it using
<Resource-ref> in web.xml.

Is this the correct way of doing this and if so any ideas on why a
resource defined in web.xml should have null attributes when i get the
object?

Thanks

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

Reply via email to