Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <datasources xmlns="http://www.jboss.org/ironjacamar/schema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
- <!-- The datasource is bound into JNDI at this location. We reference
- this in META-INF/persistence.xml -->
- <datasource jndi-name="java:jboss/datasources/MyDS"
- pool-name="homeroom" enabled="true"
- use-java-context="true" use-ccm="true">
- <connection-url>jdbc:mysql://localhost:3306/database</connection-url>
- <driver>
- com.mysql
- </driver>
- <security>
- <user-name>username</user-name>
- <password>password</password>
- </security>
- <pool>
- <min-pool-size>
- 10
- </min-pool-size>
- <max-pool-size>
- 100
- </max-pool-size>
- <prefill>
- true
- </prefill>
- <use-strict-min>
- false
- </use-strict-min>
- </pool>
- <statement>
- <prepared-statement-cache-size>
- 100
- </prepared-statement-cache-size>
- <share-prepared-statements/>
- </statement>
- </datasource>
- </datasources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement