James Parsons created TOMEE-4104:
------------------------------------
Summary: Documentation Website: XA DataSource Configuration: Bug
in MySQL Sample Code
Key: TOMEE-4104
URL: https://issues.apache.org/jira/browse/TOMEE-4104
Project: TomEE
Issue Type: Documentation
Components: Examples and Documentation, Website
Affects Versions: 8.0.13, 9.0.0-M8
Reporter: James Parsons
The TomEE documentation website, [XA DataSource Configuration
page|https://tomee.apache.org/tomee-9.0/docs/configuring-datasources-xa.html],
MySQL sample code is missing a required {color:#00875a}*</Resource>*{color}
closing tag.
The first resource currently reads:
{code:xml}
<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
{code}
It should be:
{code:xml}
<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>
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)