uCosminexus Application Server, EJB Container Functionality Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
2.18.2 Rules for implementation
Specify the method that specifies annotations by conforming to the following rules. If you do not specify the method properly, an error occurs when the application starts.
- You can use this functionality only in a Stateful Session Bean that manages transactions with CMT. You cannot use this functionality in the Stateless Session Bean and Singleton Session Bean. In BMT, you can manage the timing of the transaction processing with a Session Bean and hence you need not use this functionality.
- Do not declare final and static in a method that specifies annotation.
- Set the return value of a method that specifies annotations to the void type.
- Do not specify parameters in @AfterBegin and @BeforeCompletion.
- Specify only one boolean type value in the @AfterCompletion parameter.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.