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 »

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: 31
Joined: Sun Oct 13, 2013 1:20 pm
Contact:

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

Post by henrid »

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

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

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

Post 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."

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

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

Post by henrid »

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 8 guests