Hello,
I am confused with the ways to implement the lifecycle callback methods. It seems it can be done in 3 ways?
1. directly annotate the callback methods with the callback event annotation such as @postConstruct etc inside the
EJB class.
2. map the ejb class with a callback listener class and move the callback method inside the listerner class.
3. map the ejb class with an interceptor class and move the callback method inside the interceptor class.
So, what's the difference between the callback listener and callback interceptor class?
please help me to understand these.
thanks.
Helen Ge
SCJP SCWCD
SCJWD