• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

The Advantages of the Java EE 5 Platform  RSS feed

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with manuel and Spring is more flexible. Easier to unit test as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!