This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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"
 
 
subject: doubt in Mikalai notes in overiding deployment descriptor