Details
-
Documentation
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
7.0.9, 7.1.5, 9.0.0-M8, 8.0.13
Description
The TomEE documentation website, XA DataSource Configuration page, MySQL sample code is missing a required </Resource> closing tag.
The first MySQL resource currently reads:
<Resource id="demo/jdbc/XADataSource" type="DataSource">
XaDataSource demo/jdbc/XADataSourceXA
JdbcDriver com.mysql.cj.jdbc.Driver
JdbcUrl jdbc:mysql://192.168.37.202:3306/movie
username root
password my-secret-pw
JtaManaged true
InitialSize 10
MaxActive 128
MaxIdle 25
MinIdle 10
AccessToUnderlyingConnectionAllowed true
TestOnBorrow false
TestWhileIdle true
TimeBetweenEvictionRuns 1 minute
MaxWaitTime 0 seconds
ValidationQuery select 1
It should be:
<Resource id="demo/jdbc/XADataSource" type="DataSource"> XaDataSource demo/jdbc/XADataSourceXA JdbcDriver com.mysql.cj.jdbc.Driver JdbcUrl jdbc:mysql://192.168.37.202:3306/movie username root password my-secret-pw JtaManaged true InitialSize 10 MaxActive 128 MaxIdle 25 MinIdle 10 AccessToUnderlyingConnectionAllowed true TestOnBorrow false TestWhileIdle true TimeBetweenEvictionRuns 1 minute MaxWaitTime 0 seconds ValidationQuery select 1 </Resource>
Attachments
Issue Links
- links to