File: bitronix-res.properties

package info (click to toggle)
libbtm-java 2.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,568 kB
  • ctags: 7,437
  • sloc: java: 17,848; xml: 158; makefile: 19; sh: 10
file content (50 lines) | stat: -rw-r--r-- 2,231 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Bitronix XA resource loader example config file
#

# bind configured resources to JNDI
bitronix.tm.resource.bind=true

# These will create two PoolingDataSource's wrapping the FBConnectionPoolDataSource
resource.ds1.className=org.firebirdsql.pool.FBConnectionPoolDataSource
resource.ds1.uniqueName=fb1
resource.ds1.poolSize=5
resource.ds1.acquisitionTimeout=30
resource.ds1.testQuery=select 1 from rdb$database
resource.ds1.deferConnectionRelease=true
resource.ds1.driverProperties.userName=java
resource.ds1.driverProperties.password=java
resource.ds1.driverProperties.database=users1
resource.ds1.driverProperties.blockingTimeout=3000
resource.ds1.driverProperties.pooling=true

resource.ds2.className=org.firebirdsql.pool.FBConnectionPoolDataSource
resource.ds2.uniqueName=fb2
resource.ds2.poolSize=5
resource.ds2.acquisitionTimeout=30
resource.ds2.testQuery=select 1 from rdb$database
resource.ds2.deferConnectionRelease=true
resource.ds2.driverProperties.userName=java
resource.ds2.driverProperties.password=java
resource.ds2.driverProperties.database=users2
resource.ds2.driverProperties.blockingTimeout=3000
resource.ds2.driverProperties.pooling=true

# These will bind a PoolingConnectionFactory wrapping the ActiveMQXAConnectionFactory
resource.mq1.className=org.apache.activemq.ActiveMQXAConnectionFactory
resource.mq1.uniqueName=amq1
resource.mq1.poolSize=2
resource.mq1.driverProperties.userName=defaultUser
resource.mq1.driverProperties.password=defaultPassword
resource.mq1.driverProperties.brokerURL=tcp://localhost:61616

# These will bind a PoolingConnectionFactory fetching the SMQ QueueConnectionFactory from another JNDI
resource.mq2.className=bitronix.tm.resource.jms.JndiXAConnectionFactory
resource.mq2.uniqueName=smq2
resource.mq2.poolSize=2
resource.mq2.cacheProducersConsumers=true
resource.mq2.driverProperties.name=QueueConnectionFactory
resource.mq2.driverProperties.initialContextFactory=com.swiftmq.jndi.InitialContextFactoryImpl
resource.mq2.driverProperties.providerUrl=smqp://localhost:4001/timeout=10000
resource.mq2.serverSessionPool.poolSize=2
resource.mq2.serverSessionPool.listenerClassName=bitronix.tm.resource.jms.SimpleMessageListener