Actually, you can define your JNDI Datasource in <GlobalNamingResources> and then define a <ResourceLink> inside your context although I would have thought that <DefaultContext> would have worked as well?
Jake
At 10:25 PM 1/12/2003 +1300, you wrote:
On Sun, 12 Jan 2003 21:32, Jacob Kjome wrote:
> change "user" to "username" and "driverName" to "url"
Did this - but still had the same problem.
A little reading put me right however, as I have now found that the reason was
that I was attempting to define the context in the <DefaultContext>. This
appears to work in 4.0, but not in 4.1. Instead you need to specify the
resource in a specific context, ie:
<Context path="/foobar" docBase="foobar" debug="0" reloadable="flase">
<Resource name="jdbc/foobar" auth="SERVLET" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/foobar">
<parameter><name>username</name><value>tim</value></parameter>
<parameter><name>password</name><value>password</value></parameter>
<parameter><name>driverClassName</name><value>org.postgresql.Driver</value></parameter>
<parameter><name>url</name><value>jdbc:postgresql://localhost/foobar</value></parameter>
</ResourceParams>
</Context>
All appears okay now, thanks for the quick replies,
Regards,
Peter
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
