Last active
March 28, 2018 08:22
-
-
Save ochaloup/6f3b1e2223e451f18048bb1a969efe4f to your computer and use it in GitHub Desktop.
narayana tomcat integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Resource name="psqlDataSource" uniqueName="psqlDataSource" auth="Container" | |
| factory="org.postgresql.xa.PGXADataSourceFactory" | |
| type="org.postgresql.xa.PGXADataSource" | |
| serverName="localhost" | |
| portNumber="5432" | |
| databaseName="test" | |
| user="test" | |
| password="test" | |
| description="PostgreSQL XA Data Source"/> | |
| <!-- | |
| <Resource auth="Container" | |
| description="Pooled Data Source" | |
| name="pooledDataSource" uniqueName="pooledDataSource" | |
| defaultAutoCommit="false" | |
| factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" | |
| type="javax.sql.XADataSource" | |
| dataSourceJNDI="psqlDataSource"/> | |
| --> | |
| <Resource name="transactionalDataSource" uniqueName="transactionalDataSource" auth="Container" | |
| type="javax.sql.XADataSource" | |
| factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" | |
| driverClassName="com.arjuna.ats.jdbc.TransactionalDriver" | |
| url="jdbc:arjuna:java:comp/env/psqlDataSource" | |
| description="Transactional Driver Data Source" | |
| connectionProperties="POOL_CONNECTIONS=false"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment