This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes is there any way to add resource tag in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "is there any way to add resource tag in web.xml" Watch "is there any way to add resource tag in web.xml" New topic
Author

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

Ramasubramaniam Rathinasubbu
Ranch Hand

Joined: Jun 09, 2010
Posts: 42
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"/>

</Context>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: is there any way to add resource tag in web.xml
 
Similar Threads
Problem running jsp-servlet application in JBOSS AS
how to use the servlet in tomcat??
Tomcat and datasource
Pass parameters to servlet
connection pooling