This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Annotations and Deployment Descriptor 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 "Annotations and Deployment Descriptor" Watch "Annotations and Deployment Descriptor" New topic

Annotations and Deployment Descriptor

Saeed Amer
Ranch Hand

Joined: Jan 20, 2004
Posts: 140
Hi there,

I understand that EJB 3.0 code annotations can be overridden in the deployment descriptor.

Just ondering if the EJB 3.0 deployment descriptor can override ALL of the annotations in the code or there are any exceptions to this?

Ramamoorthy Periasamy
Ranch Hand

Joined: Feb 06, 2006
Posts: 30
As far as I heard yeah we can override all the annotations with Deployment descriptor
Tridib Samanta
Ranch Hand

Joined: Apr 28, 2004
Posts: 128
Keep in mind not all annotations are overridable
e.g., Session bean type (Stateful vs. Stateless) can't be overridden

Thanks, Tridib
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
Saeed Amer
Ranch Hand

Joined: Jan 20, 2004
Posts: 140
Thank you both!
It is sorta covered in the JavaRanch Style Guide.
subject: Annotations and Deployment Descriptor
Similar Threads
Part I: Details about annotations and deployment descriptors
EJB 3.0 Interceptors
Java Annotation guide
Persistence EntityManager injection from ejb-jar.xml
XML deployment descriptors within the O'reilly EnterPrise JavaBeans 3.0.