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
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?
The default transaction attribute is Required. If you want anything else, you have to declare it.