Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFLY-14388 resolve expression for transaction-support attribute in r-a subsystem. #14059

Merged
merged 1 commit into from Mar 8, 2021

Conversation

soul2zimate
Copy link
Contributor

Issue: https://issues.redhat.com/browse/WFLY-14388 resolve expression for transaction-support attribute in r-a subsystem.

In r-a subsystem ResourceAdapterSubsystemParser and ResourceAdapterParser rely on resolved value of transaction-support (user specified transaction support level of the resource adapter among NoTransaction, LocalTransaction and XATransaction) to read/write connection-definition attributes. It's not a perfect approach, but that's the reason transaction-support attribute is defined to determine XA.

Also I have removed unused isXa in parseTimeOutand unused resource-adapters-xapool-expression2.xml

@tadamski please review. thanks.

@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Mar 1, 2021
Copy link
Contributor

@tadamski tadamski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bstansberry
Copy link
Contributor

@@ -321,7 +321,11 @@ private void parseResourceAdapter(final XMLExtendedStreamReader reader, final Li
}
String value = rawElementText(reader);
TRANSACTION_SUPPORT.parseAndSetParameter(value, operation, reader);
isXa = value != null && TransactionSupportEnum.valueOf(value) == TransactionSupportEnum.XATransaction;
ModelNode transactionSupport = TRANSACTION_SUPPORT.parse(value, reader);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimpleAttributeDefinition#parse is deprecated. Can you use getParser as JavaDoc suggests?

@bstansberry bstansberry merged commit d4f421c into wildfly:master Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
4 participants