EJB Spec study notes
Business interface
1. interfaces are excluded when determine whether bean has more than one interface: Serializable, Externalizable, any interface defined by javax.ejb.*
2. Same interface can not be used as Local and Remote interface
3. wont extend EJB(Local)Object, previous version 2.1 will do it.
Interceptor
1. order of define is order of invoke
2. have no-arg public constructor
Exception
1. business interface can throw any exception but NOT RemoteException, EJBException will wrap remote exception
EJB3 Annotation
The @PreDestroy callback happens after any method with an @Remove annotation has been completed.
@EJB
@Resource
@PersistenceContext
@PersistenceUnit
how to reference another EJB
1. go through Jndi call
2. using EJBContext which has method: lookup(...)