[jboss-user] [Beginners Corner] - Re: how to create connection pool
PeterJ
do-not-reply at jboss.com
Tue Jun 5 16:25:51 EDT 2007
When you declare your datasource using a *-ds.xml file, supply min-pool-size and max-pool-size entries. For example:
<datasources>
| <local-tx-datasource>
| <jndi-name>ds/ProductDS</jndi-name>
| <connection-url>jdbc:postgresql:productdb</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>xxx</user-name>
| <password>xxx</password>
| <min-pool-size>5</min-pool-size>
| <max-pool-size>20</max-pool-size>
| </local-tx-datasource>
| </datasources>
|
Reference: http://docs.jboss.com/jbossas/guides/j2eeguide/r2/en/html_single/#ch7.jdbc.sect
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051535#4051535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051535
More information about the jboss-user
mailing list