Appendix C. Annotations reference
In this appendix, we list all the EJB 3 annotations we talked about throughout the book. This appendix is designed to be a quick reference you can use while developing your enterprise application. See the individual chapters for the full details of each annotation.
The annotations are organized by topic, roughly following the same sequence as the chapters.
The following are all the annotations that are used in session and message-driven beans.
These annotations are used for stateless and stateful session beans.
Marks a POJO as a stateless session bean.

Marks a POJO as a stateful session bean.

Denotes a business method as the remove method of a stateful session bean.
The @Remove annotation has one element: retainIfException. If it is set to true and an exception is thrown from designated method, the bean will not be removed.
Marks a POJI as a session bean remote business interface.
The @Remote annotation can be applied on both on a bean class or on a business interface. The class element is used to specify the name of the interface when @Remote is applied on the bean class.