wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Error in spec? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Error in spec?" Watch "Error in spec?" New topic
Author

Error in spec?

Jonathan Elkharrat
Ranch Hand

Joined: Dec 31, 2008
Posts: 170

EJB3 core:

12.8.1 Specification of Interceptors
The interceptor deployment descriptor element is used to specify the interceptor methods of an
interceptor class. The interceptor methods are specified by using the around-invoke, pre-construct,
post-destroy, pre-passivate, and post-activate elements.



SCJP 5, SCWCD 5, SCBCD 5
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Yes, the interceptors may define pre-destroy and post-construct callbacks, it is correct. You can also do it with annotations.
Jonathan Elkharrat
Ranch Hand

Joined: Dec 31, 2008
Posts: 170

i know that. even the bean can do that.
but the spec says "pre-construct" (instead of post-construct)
and post-destroy (that's also nonsense, there's nothing to do after the bean is destroyed)
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Right, didn't notice this. Looks wrong indeed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in spec?
 
Similar Threads
Pattern Matching
Damm Final Variable
Structs Resource Bundle
Transaction ManageMent in Spring with Hibernate
Problem with EJB 3.0 Specs Intercptors ......