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

Add tests for Jakarta EE integration of Jakarta Persistence with the CDI bean manager #1405

Open
scottmarlow opened this issue Jul 23, 2024 · 3 comments
Assignees
Labels
11.0 Issues related to the Jakarta EE 11 Platform TCK release

Comments

@scottmarlow
Copy link
Contributor

Add tests for jakartaee/platform#746

@scottmarlow scottmarlow added the 11.0 Issues related to the Jakarta EE 11 Platform TCK release label Jul 23, 2024
@scottmarlow scottmarlow self-assigned this Jul 23, 2024
@edburns
Copy link
Contributor

edburns commented Jul 23, 2024

Notes from Platform call

  • Stateless session beans have always been challenging to test robustly.
    • JPA 2.1 clarification: when you use EntityManager outside of a transaction, after each entity call, the PersistenceContext state is not preserved.

@scottmarlow
Copy link
Contributor Author

scottmarlow commented Jul 25, 2024

Notes from Platform call

* Stateless session beans have always been challenging to test robustly.
  
  * JPA 2.1 clarification: when you use `EntityManager` outside of a transaction, after each entity call, the `PersistenceContext` state is not preserved.

Unless a persistence unit hint (e.g. extension) like jboss.as.jpa.deferdetach is used to defer the clearing/close of the persistence context until the session bean call completes.

@edburns
Copy link
Contributor

edburns commented Oct 30, 2024

Depends on #1624 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11.0 Issues related to the Jakarta EE 11 Platform TCK release
Projects
Status: In progress
Development

No branches or pull requests

3 participants