Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is there any way to add resource tag in web.xml

Ramasubramaniam Rathinasubbu
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
connection pooling configuration: as per the tomcat admin portal instruction, i added the <resource.. tag with in the <context> tag

in production, this thins,should do manually add in web.XML? or is there any way of add dynamically.

<Context docBase="sample" path="/sample" reloadable="true" source="org.eclipse.jst.j2ee.server:kycportal">
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="10" maxIdle="20" maxWait="6000" name="jdbc/test" password="root" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/empdatabase?autoReconnect=true" username="root"/>

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic