The transaction attribute is defined per method basis. The deployment descriptor should contain those description for business methods. |
A session bean description should not specify anything for remove() and create() methods |
An entity bean description should define transaction attributes for remove, create, and find methods. |
In the deployment descriptor, container-transaction tag is used to give the transaction attributes. In this tag each trans-attribute element associates a transaction attribute with the included methods. |