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 Java in General and the fly likes The Advantages of the Java EE 5 Platform 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 » Java » Java in General
Bookmark "The Advantages of the Java EE 5 Platform" Watch "The Advantages of the Java EE 5 Platform" New topic
Author

The Advantages of the Java EE 5 Platform

Rahul Kakkar
Ranch Hand

Joined: Apr 17, 2005
Posts: 70
I was just reading an article on sun:

http://java.sun.com/developer/technicalArticles/Interviews/shannon_qa.html

if basically java ee 5 is doing away with deployment descriptors and putting in annotations.. wouldn't we be losing out on one of the major advantages of using deployment descriptors? for instance, with a deployment descriptor we can make changes and redeploy the app without recompiling or even touching the source code! but since they plan to use annotations to replace deployment descriptors, any modifications to the annotations would need us to recompile the source again right? or is my concept of annotations wrong? i'm unclear about this (annotations) feature of java 5.
Manuel Palacio
Ranch Hand

Joined: Oct 16, 2000
Posts: 45
EJB 3.0 (JEE5) allows you to configure most application settings via annotations. But EJB 3.0 also supports XML files for overriding default annotation values and configuring external resources such as database connections. So, I guess it's all a matter of choice depending on the type of metadata: for metadata that is coupled to the classes, use annotations i.e. O/R annotations. For application-level metadata i.e AOP metadata, or DB metadata, use deployment descriptors.

Still, I guess building apps on JEE5 is not as flexible as doing so on Spring, especially when it comes to configuration choices.

/M

[ April 01, 2006: Message edited by: Manuel Palacio ]
[ April 01, 2006: Message edited by: Manuel Palacio ]

<a href="http://www.newinstance.net" target="_blank" rel="nofollow">http://www.newinstance.net</a>
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
I agree with manuel and Spring is more flexible. Easier to unit test as well.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Advantages of the Java EE 5 Platform
 
Similar Threads
The ´┐ŻNobel Prize of Computing,"
Inefficient code
Coding in Java EE 5 with J2EE 1.4 Specs
To Bert and Kathy: Materials used for SCJP Tiger
dependency injection on distributed containers