Here is some code for using Poolman 2.1b as Connection-Pool-Manager with
dbforms, MySQL-Driver3beta and Tomcat 4.0.1:

Example "poolman.xml" in WebApp/WEB-INF/classes folder:


*********************BEGIN**************************************

<?xml version="1.0" encoding="UTF-8"?>

<poolman>

  <management-mode>local</management-mode>

  <datasource>

    <dbname>myDatabase</dbname>
    <jndiName>myDatabase</jndiName>
    <driver>com.mysql.jdbc.Driver</driver>
    <url>jdbc:mysql://localhost:3306/myDatabase</url>

    <username>myUser</username>
    <password>myPass</password>

    <minimumSize>0</minimumSize>
    <maximumSize>10</maximumSize>

    <logFile>/home/poolman/logs/myDatabase.log</logFile>

  </datasource>

</poolman>

*********************END***************************************


Pooling in "dbforms-config.xml" with <dbconnection>:

*********************BEGIN**************************************

(...)

                <dbconnection
                name   = "jdbc:poolman://myDatabase"
                isJndi = "false"
                conClass = "com.codestudio.sql.PoolMan"
                username = "myUser"
                password = "myPass"
        />

(...)

*********************END***************************************

I wrote this to the list because I could not find any working example
in the User's guide. 

--- Yves


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to