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

Fix resumeTransaction always being forced when tx sync is inactive #3539

Merged
merged 6 commits into from Aug 8, 2022

Conversation

nielsm5
Copy link
Sponsor Member

@nielsm5 nielsm5 commented Jul 27, 2022

  • Disable streaming xslt when attribute streamingActive is set to false
  • Improve error handling when XsltSender cannot parse XML (and the ExceptionCatchingFilter is never called)

public void resumeTransaction() {
resumeTransaction(false);
}
public void resumeTransaction(boolean force) {
if (suspended || force) {
log.debug("resumeTransaction() resuming transaction of parent thread [{}], current thread [{}]", ()->parentThread.getName(), ()->Thread.currentThread().getName());
if (!force || !TransactionSynchronizationManager.isSynchronizationActive()) {
Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

!?

@nielsm5 nielsm5 marked this pull request as ready for review August 3, 2022 11:38
@nielsm5 nielsm5 changed the title Disable streaming xslt when attribute streamingActive is set to false Fix resumeTransaction always being forced when tx sync is inactive Aug 4, 2022
@gvanbrakel gvanbrakel merged commit 66b2ff9 into master Aug 8, 2022
@gvanbrakel gvanbrakel deleted the issue/streamingActiveXslt branch August 8, 2022 11:57
nielsm5 added a commit that referenced this pull request Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapter throws IllegalStateException: Thread is already associated with a transaction
2 participants