| Author |
is it do-able : creating Tomcat datasource without access to tomcat admin console?
|
raminaa niilian
Ranch Hand
Joined: Jul 14, 2005
Posts: 550
|
|
Hi 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 ?
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Yes, and Yes (with one correction). You can create a datasource without the admin app. http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html If Tomcat is to manage the database connections, then it need access to the drivers. The {tomcat install}/common/lib directory is where libraries that are to be shared between the appserver (Tomcat) and the applications go. The {tomcat install}/shared/lib is for libraries that are to be shared beween applications but not Tomcat itself.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: is it do-able : creating Tomcat datasource without access to tomcat admin console?
|
|
|