Originally posted by B Tate:
- Annotations in EJB 3 are overused. Combines too much metadata into the code that should be broken out, and also couples container with annotations.
Bruce I have some idea of annotations. It probably does what XDoclet already does except that you can query the class at runtime and figure what kind of services are needed for the object at runtime and container can apply them accordingly?.
When do we say that annotations are overused. Would it be possible for you to give me any examples?
Say am using XDoclet for an EJB, and am adding an XDoclet tag that specifies the role that the caller needs to subscribe to , would you call it overuse? since that can be changed during deployment and hence s'd go in a descriptor and not into source file?.
Adding XDoclet container specific tags(weblogic,
jboss etc) ...would this qualify as an overuse?
Say I beleive that a method s'd always execute in a new transaction, this I would think belongs in the source file.