EJB @TransactionManagement
The @TransactionManagement annotation is used to let the container know if the transaction the EJB uses are container or bean-managed. The example shows you how to annotate if the EJB is using bean-managed transactions. Note the default of an EJB is to be container-managed.
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class ShoppingCatalog {
}
Copyright © 2003-2009 Manorrock.com. All Rights Reserved.