You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matteo Di Giovinazzo <ma...@infinito.it> on 2001/07/09 22:32:58 UTC

example for data-source connection pool in struts-config.xml

there's any example or tutorial for using the data-source tag in struts-config.xml?

TIA, matteo

Re: example for data-source connection pool in struts-config.xml

Posted by Ted Husted <hu...@apache.org>.
If you check the documentation for your JDBC driver, the properties you
need to set should be evident given the stock example:

<!--
  <data-sources>
    <data-source
       autoCommit="false"
      description="Example Data Source Configuration"
      driverClass="org.postgresql.Driver"
         maxCount="4"
         minCount="2"
         password="mypassword"
              url="jdbc:postgresql://localhost/mydatabase"
             user="myusername"
    />
  </data-sources>
-->


For more about the Generic Connection Pool, see the Developers Guide for
the Utilities

<
http://jakarta.apache.org/struts/api/org/apache/struts/util/package-summary.html#doc.JDBC
>

and the Users Guide

<
http://jakarta.apache.org/struts/userGuide/building_model.html#databases
>


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


> Matteo Di Giovinazzo wrote:
> 
> there's any example or tutorial for using the data-source tag in
> struts-config.xml?
> 
> TIA, matteo