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

Online
admin
Site Admin
Posts: 10034
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."
If you like our products and services, please help us by posting your review here.

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