This config depend the implementation of the XA underlying datasource. For MySQL it is needed in the XA datasource, seems for oracle that's the pool
Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-09 10:18 GMT+02:00 drieselliott <[email protected]>: > Hi, > > Thanks, I had to make another small change, but I got it to work using the > configuration below: > > <Resource id="jdbc/OracleNarDs" type="DataSource"> > XaDataSource jdbc/OracleNarDsXa > DataSourceCreator dbcp > MaxIdle 10 > MaxActive 20 > ValidationQuery SELECT 1 FROM DUAL > Username **** > Password **** > </Resource> > > <Resource id="jdbc/OracleNarDsXa" > class-name="oracle.jdbc.xa.client.OracleXADataSource"> > Url jdbc:oracle:thin:@****:1521:**** > </Resource> > > It seems I had to move the username and password properties from > OracleNarDsXa to OracleNarDS. I have no idea why that was necessary, but it > seems to have done the job. > > Kind regards, > > Dries Elliott > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Oracle-XA-datasource-configuration-tp4671692p4671698.html > Sent from the TomEE Users mailing list archive at Nabble.com.
