Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3 and annotation  RSS feed

 
Dany o'delphy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy,
a new feature of EJB3 are the configuration by the annotation tag inside the java class.
We don't think that this is a step behind because before it has been one run to the management through configuration file (ex:ejb-jar), in order not to have to put the hands on the classes and now we give the possibility to "configure" within a class.
We don't think that this is an indication of confusion?
Without null removing to the positive innovations brought from Ejb3, is only mine dubt
Thanks in advance
Danilo Del Fio
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i understand your question right, you want to know are we taking a step back by configuring within the java files instead of deployment descriptors. I had similar question sometime back, which was answered here
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3 simplifies development by:

1. Making components POJOs and interfaces POJIs

2. No implementation of EJB interfaces and unnecessary lifecycle callback method

3. Intelligent defaults - configure only when you need different! EJB 2 descriptors were very verbose.

4. Making use Annotations (if you are an XML fan then you can still use XML descriptor and that becomes the final source of truth)

So if you do not like to put configurations in annotation you can still use descriptors to configure only those you want to be specified!

You can read chapter 11 (EJB 3 Packaging and deployment) of my book that will available freely sometime late this week (@ http://manning.com/panda/) and learn about these interesting mix-n-match cases

-debu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!