aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes doubt in Mikalai notes in overiding deployment descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "doubt in Mikalai notes in overiding deployment descriptor" Watch "doubt in Mikalai notes in overiding deployment descriptor" New topic
Author

doubt in Mikalai notes in overiding deployment descriptor

gaurav singhal
Ranch Hand

Joined: Nov 18, 2005
Posts: 135
Mikalai notes state that

The deployment descriptor may be used to augment the interceptors and interceptor methods defined by means of annotations. When the deployment descriptor is used to augment the interceptors specified in annotations, the interceptor methods specified in the deployment descriptor
will be invoked after those specified in annotations.


Whereas EJB simplified sates that

Although it is not anticipated as a typical use case, it is possible for the application developer to combine the use of metadata annotations and deployment descriptors in the design of an application. When such a combination is used, the rules for the use of deployment descriptors as an overriding mechanism apply.


Is there some exceptional condition for callback method plese clarify.
Rajan Murugan
Ranch Hand

Joined: Jun 24, 2006
Posts: 182
In this case only the order of invocation can be changed.When you have interceptors mentioned in the dd and with annotations all the interceptors will be called.refer to 12.3.1 and 12.4.1 of core spec for detailed description of the order in case of multiple interceptors.It is a sort of union.


With Regards,<br /> Rajan<br />"Java Rocks"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: doubt in Mikalai notes in overiding deployment descriptor