32. May use one or more @ActivationConfigProperty annotation for configuration @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mdb") }) public class CalculatorBean implements MessageListener { public void onMessage (Message msg) {
54. An interceptor may be defined as a method in a bean @Stateless public class MyBean { @AroundInvoke public Object log(InvocationContext inv) throws Exception { // Do stuff return inv.proceed(); }
59. Declarative statement if an application exception shall cause a rollback @ApplicationException(rollback=true) MyAppException extends RuntimeException {
103. In EJB it may only be used in stateful session beans
104. The extended context is closed when the stateful bean is removed @PersistenceContext(type=PersistenceContextType.EXTENDED) private EntityManager manager;