jholmes 2002/09/17 17:32:55 Modified: doc/userGuide building_controller.xml Log: update <data-source> config documentation to have an example for Commons BasicDataSource PR: Bugzilla #12623 Revision Changes Path 1.25 +18 -0 jakarta-struts/doc/userGuide/building_controller.xml Index: building_controller.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- building_controller.xml 14 Sep 2002 05:49:18 -0000 1.24 +++ building_controller.xml 18 Sep 2002 00:32:54 -0000 1.25 @@ -501,6 +501,7 @@ <pre> <struts-config> <data-sources> + <!-- configuration for GenericDataSource wrapper --> <data-source> <set-property property="autoCommit" value="false"/> @@ -518,6 +519,23 @@ value="jdbc:postgresql://localhost/mydatabase"/> <set-property property="user" value="myusername"/> + </data-source> + + <!-- configuration for commons BasicDataSource --> + <data-source type="org.apache.commons.dbcp.BasicDataSource"> + <set-property property="driverClassName" + value="org.postgresql.Driver" /> + <set-property property="url" + value="jdbc:postgresql://localhost/mydatabase" /> + <set-property property="maxActive" + value="10" /> + <set-property property="maxWait" + value="5000" /> + <set-property property="defaultAutoCommit" + value="false" /> + <set-property property="defaultReadOnly" + value="false" /> + </data-source> </data-sources> </struts-config>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>