posted 18 years ago
You specify transaction isolation levels in ejb-jar.xml. The list of transaction isolation levels are:
Mandatory
Required
RequiresNew
Never
NotSupported
Supports
You specify them at the method level under the <assembly-descriptor> section of the ejb-jar.xml.
Ex:
<assembly-descriptor>
....
....
<container-transaction>
<method>
<ejb-name>NextIdBean</ejb-name>
<method-intf>Local</method-intf>
<method-name>setId</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
...
...
</assembly-descriptor>