| Author |
Annotations vs DD
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
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: 8795
|
|
|
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: 14669
|
|
|
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: 8795
|
|
|
Both ways of doing it gives me DI..Am I right?
|
 |
 |
|
|
subject: Annotations vs DD
|
|
|