users@glassfish.java.net

Re: sun-web.xml datasource definition

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Thu, 06 Nov 2008 20:11:58 -0800

Josh Joy wrote:
> Hi,
>
> I would like to define my datasource in the sun-web.xml, similar to
> how it can be done in tomcat in the context.xml or jetty jetty-env.xml
>
Not sure it is possible via sun-web.xml.
But read:
http://docs.sun.com/app/docs/doc/819-3671/gcnkp?a=view
search for sun-resource there.
and http://docs.sun.com/app/docs/doc/819-3662/add-resources-1?a=view

Ludo
> Is there an example somewhere?
> I just need to set the driver,url,username,and password, jndi name.
>
> Thanks,
> Josh