Advertisement
Guest User

Untitled

a guest
Jun 28th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.40 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <datasources xmlns="http://www.jboss.org/ironjacamar/schema"
  3.             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.             xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
  5.     <!-- The datasource is bound into JNDI at this location. We reference
  6. this in META-INF/persistence.xml -->
  7.     <datasource jndi-name="java:jboss/datasources/MyDS"
  8.                pool-name="homeroom" enabled="true"
  9.                use-java-context="true" use-ccm="true">
  10.         <connection-url>jdbc:mysql://localhost:3306/database</connection-url>
  11.         <driver>
  12.             com.mysql
  13.         </driver>
  14.         <security>
  15.             <user-name>username</user-name>
  16.             <password>password</password>
  17.         </security>
  18.         <pool>
  19.             <min-pool-size>
  20.                 10
  21.             </min-pool-size>
  22.             <max-pool-size>
  23.                 100
  24.             </max-pool-size>
  25.             <prefill>
  26.                 true
  27.             </prefill>
  28.             <use-strict-min>
  29.                 false
  30.             </use-strict-min>
  31.         </pool>
  32.         <statement>
  33.             <prepared-statement-cache-size>
  34.                 100
  35.             </prepared-statement-cache-size>
  36.             <share-prepared-statements/>
  37.         </statement>
  38.     </datasource>
  39. </datasources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement