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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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

Reply via email to