This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in Mikalai notes in overiding deployment descriptor

 
gaurav singhal
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic