Update of /var/cvs/contributions/CMSContainer_Portlets/portlets-jforum
In directory james.mmbase.org:/tmp/cvs-serv24906

Modified Files:
        README.txt 
Log Message:
CMSC-915,JForum: externalize database and other configuration settings to the 
context files


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-jforum
See also: http://www.mmbase.org/jira/browse/CMSC-915


Index: README.txt
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/README.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- README.txt  21 May 2008 14:51:56 -0000      1.4
+++ README.txt  30 May 2008 08:03:22 -0000      1.5
@@ -315,3 +315,27 @@
       <servlet-name>jforum</servlet-name>
       <url-pattern>*.page</url-pattern>
    </servlet-mapping>
\ No newline at end of file
+
+    <resource-ref>
+               <description>Jforum</description>
+               <res-ref-name>jdbc/jforum</res-ref-name>
+               <res-type>javax.sql.DataSource</res-type>
+               <res-auth>Container</res-auth>
+       </resource-ref>
+
+   Step 3  : Configure DataSouce
+
+   Add DataSouce in the context xml file,e.g.: the name should be jdbc/jforum
+
+    <Resource name="jdbc/jforum" auth="Container" type="javax.sql.DataSource"
+               removeAbandoned="true" 
+               removeAbandonedTimeout="60"
+               logAbandoned="true" 
+               maxActive="10"
+               maxIdle="1" 
+               maxWait="10000" 
+               username="root" 
+               password="1234"
+               driverClassName="com.mysql.jdbc.Driver" 
+               url="jdbc:mysql://localhost:3306/jforum" />
+
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to