Changes DataSource to XADataSource#1
Conversation
|
Hello @mmadzin, this is just my fork. Could you open a PR for https://github.com/web-servers/narayana-tomcat/pulls, please? |
|
I know that this is "just" your fork... however it's the fork we are using in our automation. Is there any reason why we are not using web-servers flavor? |
|
@mmadzin You are right. It is this never merged PR: web-servers#26 The PR breaks on Tomcat that does not have Natives (vanilla upstream). Do you know why this is supposed to be configured as XA suddenly? |
|
No idea why this issue showed up now. We do not archive test application which contains configuration file. Hence I can't check what was set before whether the value was / was not changed to XA dynamically. What I was able to check is that "with current" settings older Tomcats also complain about DataSource type. |
|
@mmadzin Could you post those failures? Maybe @rsynek could help explaining them... I am reluctant to accept a change none of us is sure was a bug in the first place. XADataSource and DataSource are two different things. Is this data source really supposed to work with XA Transactions? If it is so, why wasn't it a problem before? |
|
I believe that the current issue is cause by resource definition. Currently context.xml contains resource with javax.sql.DataSource and Tomcat complains: I also checked what type is used when test suite runs with docker db instead of db_allocator. The type is set to XADataSource. Resource configuration when Docker db is used.
|
Changes DataSource with XADataSource