Here is a list of all Java EE 5 Annotations:
JSR |
Annotation |
DD Tag(s) |
Supported_in |
Notes |
Deployment implementation |
Runtime implementation |
---|---|---|---|---|---|---|
JSR 250 |
1. javax.annotation.Generated |
|
Client JAR |
The only annotation with SOURCE retention. All the others are |
Geronimo |
Geronimo |
|
2. javax.annotation.PostConstruct |
post-construct |
Client JAR |
|
Geronimo |
Geronimo |
|
3. javax.annotation.PreDestroy |
pre-destroy |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
1. env-entry |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
2. service-ref |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
3. resource-ref |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
4. message-destination-ref |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
5. resource-env-ref |
Client JAR |
|
Geronimo |
Geronimo |
|
4. javax.annotation.Resource |
6. webservice-context |
Client JAR |
|
Geronimo |
Geronimo |
|
5. javax.annotation.Resources |
|
|
Same as Resource |
|
|
|
6. javax.annotation.security.DeclareRoles |
security-role-ref |
Client JAR |
|
Geronimo |
Geronimo |
|
7. javax.annotation.security.DenyAll |
|
Client JAR |
Not supported in servlets |
Geronimo |
Geronimo |
|
8. javax.annotation.security.PermitAll |
|
Client JAR |
Not supported in servlets |
Geronimo |
Geronimo |
|
9. javax.annotation.security.RolesAllowed |
|
Client JAR |
Not supported in servlets |
Geronimo |
Geronimo |
|
10. javax.annotation.security.RunAs |
run-as |
Client JAR |
Servlets only |
Geronimo |
Geronimo |
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-220 |
1. javax.ejb.ActivationConfigProperty |
activation-config-property |
|
OpenEJB |
|
|
|
2. javax.ejb.ApplicationException |
application-exception |
Client JAR |
OpenEJB |
|
|
|
3. javax.ejb.EJB |
1. ejb-ref |
Client JAR |
|
1. |
|
|
3. javax.ejb.EJB |
2. ejb-local-ref |
Client JAR |
|
1. |
|
|
4. javax.ejb.EJBs |
|
|
Same as EJB |
|
|
|
5. javax.ejb.Init |
|
Client JAR |
OpenEJB |
|
|
|
6. javax.ejb.Local |
local |
Client JAR |
OpenEJB |
|
|
|
7. javax.ejb.LocalHome |
local-home |
Client JAR |
OpenEJB |
|
|
|
8. javax.ejb.MessageDriven |
message-driven |
Client JAR |
OpenEJB |
|
|
|
9. javax.ejb.PostActivate |
post-activate |
Client JAR |
OpenEJB |
|
|
|
10. javax.ejb.PrePassivate |
pre-passivate |
Client JAR |
OpenEJB |
|
|
|
11. javax.ejb.Remote |
remote |
Client JAR |
OpenEJB |
|
|
|
12. javax.ejb.RemoteHome |
home |
Client JAR |
OpenEJB |
|
|
|
13. javax.ejb.Remove |
|
Client JAR |
OpenEJB |
|
|
|
14. javax.ejb.Stateful |
stateful |
Client JAR |
OpenEJB |
|
|
|
15. javax.ejb.Stateless |
stateless |
Client JAR |
OpenEJB |
|
|
|
16. javax.ejb.Timeout |
|
Client JAR |
OpenEJB |
|
|
|
17. javax.ejb.TransactionAttribute |
trans-attribute |
Client JAR |
OpenEJB |
|
|
|
18. javax.ejb.TransactionManagement |
|
Client JAR |
OpenEJB |
|
|
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-220 |
1. javax.interceptor.AroundInvoke |
around-invoke |
|
|
|
|
|
2. javax.interceptor.ExcludeClassInterceptors |
exclude-class-interceptors |
|
|
|
|
|
3. javax.interceptor.ExcludeDefaultInterceptors |
exclude-default-interceptors |
|
|
|
|
|
4. javax.interceptor.Interceptors |
interceptors |
|
|
|
|
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-181 |
1. javax.jws.HandlerChain |
handler-chain |
|
|
|
|
|
2. javax.jws.Oneway |
|
|
|
|
|
|
3. javax.jws.WebMethod |
|
|
|
|
|
|
4. javax.jws.WebParam |
|
|
|
|
|
|
5. javax.jws.WebResult |
|
|
|
|
|
|
6. javax.jws.WebService |
service-ref-type |
|
|
|
|
|
7. javax.jws.soap.InitParam |
|
|
|
|
|
|
8. javax.jws.soap.SOAPBinding |
|
|
|
|
|
|
9. javax.jws.soap.SOAPMessageHandler |
|
|
|
|
|
|
10. javax.jws.soap.SOAPMessageHandlers |
|
|
|
|
|
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-220 |
1. javax.persistence.AssociationOverride |
|
|
|
|
|
|
2. javax.persistence.AssociationOverrides |
|
|
|
|
|
|
3. javax.persistence.AttributeOverride |
|
|
|
|
|
|
4. javax.persistence.AttributeOverrides |
|
|
|
|
|
|
5. javax.persistence.Basic |
|
|
|
|
|
|
6. javax.persistence.Column |
|
|
|
|
|
|
7. javax.persistence.ColumnResult |
|
|
|
|
|
|
8. javax.persistence.DiscriminatorColumn |
|
|
|
|
|
|
9. javax.persistence.DiscriminatorValue |
|
|
|
|
|
|
10. javax.persistence.Embeddable |
|
|
|
|
|
|
11. javax.persistence.Embedded |
|
|
|
|
|
|
12. javax.persistence.EmbeddedId |
|
|
|
|
|
|
13. javax.persistence.Entity |
|
|
|
|
|
|
14. javax.persistence.EntityListeners |
|
|
|
|
|
|
15. javax.persistence.EntityResult |
|
|
|
|
|
|
16. javax.persistence.Enumerated |
|
|
|
|
|
|
17. javax.persistence.ExcludeDefaultListeners |
|
|
|
|
|
|
18. javax.persistence.ExcludeSuperclassListeners |
|
|
|
|
|
|
19. javax.persistence.FieldResult |
|
|
|
|
|
|
20. javax.persistence.GeneratedValue |
|
|
|
|
|
|
21. javax.persistence.Id |
|
|
|
|
|
|
22. javax.persistence.IdClass |
|
|
|
|
|
|
23. javax.persistence.Inheritance |
|
|
|
|
|
|
24. javax.persistence.JoinColumn |
|
|
|
|
|
|
25. javax.persistence.JoinColumns |
|
|
|
|
|
|
26. javax.persistence.JoinTable |
|
|
|
|
|
|
27. javax.persistence.Lob |
|
|
|
|
|
|
28. javax.persistence.ManyToMany |
|
|
|
|
|
|
29. javax.persistence.ManyToOne |
|
|
|
|
|
|
30. javax.persistence.MapKey |
|
|
|
|
|
|
31. javax.persistence.MappedSuperclass |
|
|
|
|
|
|
32. javax.persistence.NamedNativeQueries |
|
|
|
|
|
|
33. javax.persistence.NamedNativeQuery |
|
|
|
|
|
|
34. javax.persistence.NamedQueries |
|
|
|
|
|
|
35. javax.persistence.NamedQuery |
|
|
|
|
|
|
36. javax.persistence.OneToMany |
|
|
|
|
|
|
37. javax.persistence.OneToOne |
|
|
|
|
|
|
38. javax.persistence.OrderBy |
|
|
|
|
|
|
39. javax.persistence.PersistenceContext |
|
|
|
|
|
|
40. javax.persistence.PersistenceContexts |
|
|
Same as PersistenceContext |
|
|
|
41. javax.persistence.PersistenceProperty |
|
|
|
|
|
|
42. javax.persistence.PersistenceUnit |
|
|
|
|
|
|
43. javax.persistence.PersistenceUnits |
|
|
Same as PersistenceUnit |
|
|
|
44. javax.persistence.PostLoad |
|
|
|
|
|
|
45. javax.persistence.PostPersist |
|
|
|
|
|
|
46. javax.persistence.PostRemove |
|
|
|
|
|
|
47. javax.persistence.PostUpdate |
|
|
|
|
|
|
48. javax.persistence.PrePersist |
|
|
|
|
|
|
49. javax.persistence.PreRemove |
|
|
|
|
|
|
50. javax.persistence.PreUpdate |
|
|
|
|
|
|
51. javax.persistence.PrimaryKeyJoinColumn |
|
|
|
|
|
|
52. javax.persistence.PrimaryKeyJoinColumns |
|
|
|
|
|
|
53. javax.persistence.QueryHint |
|
|
|
|
|
|
54. javax.persistence.SecondaryTable |
|
|
|
|
|
|
55. javax.persistence.SecondaryTables |
|
|
|
|
|
|
56. javax.persistence.SequenceGenerator |
|
|
|
|
|
|
57. javax.persistence.SqlResultSetMapping |
|
|
|
|
|
|
58. javax.persistence.SqlResultSetMappings |
|
|
|
|
|
|
59. javax.persistence.Table |
|
|
|
|
|
|
60. javax.persistence.TableGenerator |
|
|
|
|
|
|
61. javax.persistence.Temporal |
|
|
|
|
|
|
62. javax.persistence.Transient |
|
|
|
|
|
|
63. javax.persistence.UniqueConstraint |
|
|
|
|
|
|
64. javax.persistence.Version |
|
|
|
|
|
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-222 |
1. javax.xml.bind.annotation.XmlAccessorOrder |
|
|
|
|
|
|
2. javax.xml.bind.annotation.XmlAccessorType |
|
|
|
|
|
|
3. javax.xml.bind.annotation.XmlAnyAttribute |
|
|
|
|
|
|
4. javax.xml.bind.annotation.XmlAnyElement |
|
|
|
|
|
|
5. javax.xml.bind.annotation.XmlAttachmentRef |
|
|
|
|
|
|
6. javax.xml.bind.annotation.XmlAttribute |
|
|
|
|
|
|
7. javax.xml.bind.annotation.XmlElement |
|
|
|
|
|
|
8. javax.xml.bind.annotation.XmlElementDecl |
|
|
|
|
|
|
9. javax.xml.bind.annotation.XmlElementRef |
|
|
|
|
|
|
10. javax.xml.bind.annotation.XmlElementRefs |
|
|
|
|
|
|
11. javax.xml.bind.annotation.XmlElementWrapper |
|
|
|
|
|
|
12. javax.xml.bind.annotation.XmlElements |
|
|
|
|
|
|
13. javax.xml.bind.annotation.XmlEnum |
|
|
|
|
|
|
14. javax.xml.bind.annotation.XmlEnumValue |
|
|
|
|
|
|
15. javax.xml.bind.annotation.XmlID |
|
|
|
|
|
|
16. javax.xml.bind.annotation.XmlIDREF |
|
|
|
|
|
|
17. javax.xml.bind.annotation.XmlInlineBinaryData |
|
|
|
|
|
|
18. javax.xml.bind.annotation.XmlList |
|
|
|
|
|
|
19. javax.xml.bind.annotation.XmlMimeType |
|
|
|
|
|
|
20. javax.xml.bind.annotation.XmlMixed |
|
|
|
|
|
|
21. javax.xml.bind.annotation.XmlNs |
|
|
|
|
|
|
22. javax.xml.bind.annotation.XmlRegistry |
|
|
|
|
|
|
23. javax.xml.bind.annotation.XmlRootElement |
|
|
|
|
|
|
24. javax.xml.bind.annotation.XmlSchema |
|
|
|
|
|
|
25. javax.xml.bind.annotation.XmlSchemaType |
|
|
|
|
|
|
26. javax.xml.bind.annotation.XmlSchemaTypes |
|
|
|
|
|
|
27. javax.xml.bind.annotation.XmlTransient |
|
|
|
|
|
|
28. javax.xml.bind.annotation.XmlType |
|
|
|
|
|
|
29. javax.xml.bind.annotation.XmlValue |
|
|
|
|
|
|
30. javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter |
|
|
|
|
|
|
31. javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters |
|
|
|
|
|
JSR |
Annotation |
DD Tag(s) |
Supported in |
Notes |
Deployment implementation |
Runtime implementation |
JSR-224 |
1. javax.xml.ws.BindingType |
|
|
|
|
|
|
2. javax.xml.ws.RequestWrapper |
|
|
|
|
|
|
3. javax.xml.ws.ResponseWrapper |
|
|
|
|
|
|
4. javax.xml.ws.ServiceMode |
|
|
|
|
|
|
5. javax.xml.ws.WebEndpoint |
|
|
|
|
|
|
6. javax.xml.ws.WebFault |
|
|
|
|
|
|
7. javax.xml.ws.WebServiceClient |
|
|
|
|
|
|
8. javax.xml.ws.WebServiceProvider |
|
|
|
|
|
|
9. javax.xml.ws.WebServiceRef |
service-ref |
|
|
|
|
|
10. javax.xml.ws.WebServiceRefs |
|
|
Same as WebServiceRef |
|
|
|
11. javax.xml.ws.addressing.Action |
|
|
|
|
|
|
12. javax.xml.ws.addressing.FaultAction |
|
|
|
|