Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.523 :

Posted: Mon Jun 15, 2015 1:14 pm
by himaiMinh
In the explanation of option 5 "Callback methods can't be final or static".
Actually, according to the Java 6 API,
@PostContruct and @PreDestroy may be final;
@PostActivate and @PrePassivate must not be final or static.

Re: About Question enthuware.oce-ejbd.v6.2.523 :

Posted: Wed Feb 06, 2019 2:47 am
by henrid
That's also what I learned from my JPA certification study

Re: About Question enthuware.oce-ejbd.v6.2.523 :

Posted: Wed Feb 06, 2019 3:36 am
by admin
Intercepters are governed by Interceptors specification and on page 9 of Interceptors 1.1 specification, it clearly says, "A lifecycle callback interceptor method must not be declared as final or static."

Re: About Question enthuware.oce-ejbd.v6.2.523 :

Posted: Wed Feb 06, 2019 11:08 am
by henrid
Thanks! Than I take that for granted on my upcoming EJB exam.