Best Practices

We always recommend using JTA's UserTransaction context in accessing enterprise data. This will ensure both data consistency and data integrity when multiple components are accessing the same data. If the resource adapter doesn't support JTA, local transactions are recommended for accessing enterprise data.

Container-managed transactions are more optimized because they are handled by the container. They are also easier to manage and deploy because transaction attributes are set in the deployment descriptor. The default transaction attribute should be Required. Using this attribute ensures that the methods of an enterprise bean are invoked under a JTA distributed transaction.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.44.182