Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jpa-dev] Can container EntityManagerFactory instances be RESOURCE_LOCAL?

On Tue, Apr 30, 2019 at 12:46 PM Jody Grassel <fyrewyld@xxxxxxxxx> wrote:
Container managed persistence contexts (those injected with @PersistenceContext) must be JTA persistence units.  Application managed persistence contexts (those injected with @PersistenceUnit) can be either JTA or RESOURCE_LOCAL.  An application server's runtime is going to use PersistenceProvider.createContainerEntityManagerFactory() to create an EntityManagerFactory for both cases under the hood.

Ah!  Thank you; I was forgetting about the @PersistenceUnit case.

Back to the top