Akm, @RequestScoped: EntityManager is producing it as request scoped bean means that the disposer method will be called on finishing the request.
@TransactionScoped: Will be closed after leaving the method annotated with @Transactional. That will depend on the your architecture, you can select what is better for you. On Fri, Jul 10, 2015 at 4:15 PM, akm <[email protected]> wrote: > Does DeltaSpike have any recommendation on the the scope of the Entity > Manager that will be used by the Repository? > I have tried both the @RequestScoped and the @TransactionScoped and would > like to know which DeltaSpike recommends and why. > Thanks > > > > -- > View this message in context: > http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Scope-of-Entity-Manager-tp4661043.html > Sent from the Apache DeltaSpike Incubator Discussions mailing list archive > at Nabble.com. > -- Best regard, Daniel Cunha (soro)
