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

Moderator: admin

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post by himaiMinh » Mon Jun 15, 2015 1:14 pm

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.

henrid
Posts: 21
Joined: Sun Oct 13, 2013 1:20 pm
Contact:

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

Post by henrid » Wed Feb 06, 2019 2:47 am

That's also what I learned from my JPA certification study

admin
Site Admin
Posts: 8065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Wed Feb 06, 2019 3:36 am

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.

henrid
Posts: 21
Joined: Sun Oct 13, 2013 1:20 pm
Contact:

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

Post by henrid » Wed Feb 06, 2019 11:08 am

Thanks! Than I take that for granted on my upcoming EJB exam.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests