[
https://issues.apache.org/jira/browse/TOMEE-4104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved TOMEE-4104.
------------------------------------
Fix Version/s: 9.0.0
8.0.14
Assignee: James Parsons
Resolution: Fixed
> 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: 7.0.9, 7.1.5, 9.0.0-M8, 8.0.13
> Reporter: James Parsons
> Assignee: James Parsons
> Priority: Minor
> Labels: documentation
> Fix For: 9.0.0, 8.0.14
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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 MySQL 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)