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.
About Question enthuware.oce-ejbd.v6.2.523 :
Moderator: admin
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
-
- Posts: 31
- Joined: Sun Oct 13, 2013 1:20 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.523 :
That's also what I learned from my JPA certification study
-
- Site Admin
- Posts: 10238
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.523 :
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."
If you like our products and services, please help us by posting your review here.
-
- Posts: 31
- Joined: Sun Oct 13, 2013 1:20 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.523 :
Thanks! Than I take that for granted on my upcoming EJB exam.
Who is online
Users browsing this forum: No registered users and 1 guest