Index | News | FAQ | Download | Lists | Issues | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverviewGeneralConfigurationServersIntegrationsCommunityFeeds
|
@EJB used on a class replaces <ejb-ref> and <ejb-local-ref>. @EJB used on a field or setter method (private or public) request injection of that EJB as well. When @EJB is used on a class the "beanInterface" attribute is required. When used on a field or setter method, the "beanInterface" attribute defaults to the type of the field or setter method. @Resource used on a class replaces <env-entry>, <resource-ref>, <resource-env-ref>. @Resource used on a field or method (private or public) requests injection of that resource. When @Resource is used on a class, the "type" attribute is required. When used on a field or method, the "type" attribute defaults to the type of the field or setter method. There are more annotations obviously, but these are fairly simple and get rid of a ton of xml. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Powered by Atlassian Confluence.
|