You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Harald Wellmann <hw...@gmail.com> on 2013/09/27 12:56:41 UTC

DeltaSpike Data and Container Managed Transactions

What is the proposed usage pattern of DeltaSpike Data in Java EE with
container managed transactions?

Is it possible to combine @Repository with @Stateless to make each
repository method transactional by default?

Is it possible or recommended to use DeltaSpike Data with DeltaSpike
JPA, adding @Transactional to a @Repository to make it transactional?

Or should one simply assume that @Repository methods are never called
in non-transactional contexts, e.g. by designing a service layer on
top of the repository layer and doing all transaction management in
the service layer?

Best regards,
Harald