tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Van Klaveren <nyb...@gmail.com>
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:
http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html

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 <legolas.w@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message