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

<!-- $Id: mysql-ds.xml,v 1.3.2.3 2006/02/07 14:23:00 acoliver Exp $ -->
<!--  Datasource config for MySQL using 3.0.9 available from:
	http://www.mysql.com/downloads/api-jdbc-stable.html
-->

<datasources>
		<!--  below conf is for JBoss 4.0.x 
		<local-tx-datasource>
		<jndi-name>JiveJdonDS</jndi-name>
		<connection-url>
		jdbc:mysql://localhost:3306/jivejdon?useUnicode=true&amp;characterEncoding=UTF-8
		</connection-url>
		<driver-class>com.mysql.jdbc.Driver</driver-class>
		<user-name>banq</user-name>
		<password>XXXX</password>
		<min-pool-size>3</min-pool-size>
		<max-pool-size>20</max-pool-size>
		</local-tx-datasource>
		
		
		<local-tx-datasource>
		<jndi-name>Security</jndi-name>
		<connection-url>
		jdbc:mysql://localhost:3306/jivejdon?useUnicode=true&amp;characterEncoding=UTF-8
		</connection-url>
		<driver-class>com.mysql.jdbc.Driver</driver-class>
		<user-name>banq</user-name>
		<password>xxxxx</password>
		<min-pool-size>1</min-pool-size>
		<max-pool-size>10</max-pool-size>
		</local-tx-datasource>
		-->


   <!-- below is for JBoss 4.2./JBoss 5 XADatasource   modify user-name and password -->
	<xa-datasource>
		<jndi-name>Security</jndi-name>
		<xa-datasource-class>
			com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
		</xa-datasource-class>
		<xa-datasource-property name="URL">
			jdbc:mysql://127.0.0.1:3306/security?useUnicode=true&amp;characterEncoding=utf8&amp;characterResultSets=utf8
		</xa-datasource-property>
		<user-name>banq</user-name>
		<password>PASSWORD   PASSWORD  PASSWORD</password>
		<transaction-isolation>
			TRANSACTION_READ_COMMITTED
		</transaction-isolation>
		<track-connection-by-tx>true</track-connection-by-tx>
		<new-connection-sql>set autocommit=1</new-connection-sql>
		<no-tx-separate-pools>true</no-tx-separate-pools>

	</xa-datasource>

	<xa-datasource>
		<jndi-name>JiveJdonDS</jndi-name>
		<xa-datasource-class>
			com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
		</xa-datasource-class>
		<xa-datasource-property name="URL">
			jdbc:mysql://127.0.0.1:3306/jivejdon?useUnicode=true&amp;characterEncoding=utf8&amp;characterResultSets=utf8
		</xa-datasource-property>
		<user-name>banq</user-name>
		<password>PASSWORD   PASSWORD  PASSWORD</password>
		<transaction-isolation>
			TRANSACTION_READ_COMMITTED
		</transaction-isolation>

		<min-pool-size>10</min-pool-size>
		<max-pool-size>60</max-pool-size>

		<blocking-timeout-millis>5000</blocking-timeout-millis>
		<track-connection-by-tx>true</track-connection-by-tx>
		<new-connection-sql>set autocommit=1</new-connection-sql>
		<no-tx-separate-pools>true</no-tx-separate-pools>

	</xa-datasource>

	
</datasources>
