Hello,
I've created an statefull session bean (SessionFacade) wich implements the SessionSynchronization interface.
In the ejb-jar.xml transaction-type is set to Container and
<container-transaction>
<ejb-name>SessionFacade</ejb-name>
<method-name>functionA</method-name>
<ejb-name>SessionFacade</ejb-name>
<method-name>functionB</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
Only for the methods functionA() and functionB() the afterCompletion(boolean commited) should be called.
Why is afterCompletion(boolean commited) also called for methods not listed in ejb-jar.xml?
thx,
xlrg
The default transaction attribute is Required. If you want anything else, you have to declare it.