File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Annotations vs DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Annotations vs DD" Watch "Annotations vs DD" New topic
Author

Annotations vs DD

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

What would be the advantage of using Annotations to decorate my bean rather than having it described in the DD?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

The DD overrides your annotations. But my question here is what would be advantageous when we use Annotations over DD?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Keeping declaring close to the code, and avoiding to clutter the ejb descriptor.


[My Blog]
All roads lead to JavaRanch
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Both ways of doing it gives me DI..Am I right?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Annotations vs DD
 
Similar Threads
Clarification of a topic in http://java.boot.by/scea5-guide/ch01s03.html
hi
Annotations Processing?
Appeared SCBCD5.0 Beta on Saturday
Links for mock tests