• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it do-able : creating Tomcat datasource without access to tomcat admin console?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic