tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Van Klaveren <>
Subject Re: Tomcat Datasource , can we define them in war file (whithout accessing to Admin console)?
Date Tue, 03 Jan 2006 19:00:09 GMT
Like Bruce said, you can define a DataSource as part of your
application's context.  It's the same format as the context definition
in server.xml except it's deployed with your application as an XML
file (context.xml) inside the META-INF directory of the WAR.

Here's a link to explain how to do it:

They don't go into using context.xml but the same instructions can be
applied to using the context.xml.

On 12/26/05, Legolas Woodland <> wrote:
> Hi
> Thank you for reading my post.
> Is it possible to make a data-source without admin console ?
> I mean by defining the data-source in web.xml or in Context.xml (i think
> i read somewhere that we could put context.xml into meta-inf folder and
> it will act like Context definition in admin console).
> is it mandatory that Tomcat shared library folder contain my database
> jdbc driver to have data-source ?
> I mean can we bundle , our JDBC driver inside war file and define the
> data-source in war file too ?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Andre Van Klaveren
Architect III, SCP
Global Public Sector
Unisys Corporation

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message