Skip to content

OpenEntityManagerInViewInterceptor doesn't always close connections with WildFly 8 [SPR-12118] #16734

Closed

Description

@spring-projects-issues

Phil Webb opened SPR-12118 and commented

This particular issue came up when testing a Spring Boot application but I eventually tracked it down to the use of OpenEntityManagerInViewInterceptor. It's very hard to replicate and I'm not totally sure if the issue is with Spring, WildFly or a combination of both.

I'll attach an issue project which will explain more.


Affects: 4.1 RC2

Issue Links:

Referenced from: commits spring-projects/spring-boot@6ee18fb

Activity

  1. spring-projects-issues commented on Aug 25, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Phil Webb commented

    This appears to be a regression, the sample doesn't fail with Spring 4.0.6

  2. spring-projects-issues commented on Sep 1, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This has been addressed through revised Connection reset logic, never kicking in for JTA transactions now. Apparently an accidental Connection.setReadOnly(false) call, despite that being the default state of a JDBC Connection, can cause side effects in a JTA scenario...

    More importantly for the general case, this change also avoids Connection retrieval just for reset purposes.

    Juergen

  3. added
    type: regression
    on Jan 11, 2019
  4. added this to the 4.1 GA milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions