advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Average Rating: 1.2/5 | Rate this item | 6 users have rated this item.
Expertise: Advanced
Language: Java
September 2, 2011
Managed Classes and Object Injection in Java EE 5

This table provides a quick reference for what types of managed classes can inject what object in Java EE 5.

  Objects
Managed Classes Stateful Stateless Message-driven
Bean (MDB)
Interceptors
JDBC DataSource Yes Yes Yes Yes
EJBContext Yes Yes Yes No
Web Service Ref Yes Yes Yes Yes
EntityManagerFactory Yes Yes Yes Yes
Timer No Yes Yes No
UserTransaction Yes Yes Yes Yes
Mail Resource Yes Yes Yes Yes
JMS Yes Yes Yes Yes
Environment Entries Yes Yes Yes Yes
Anghel Leonard
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
Please rate this item (5=best)
 1  2  3  4  5
advertisement
advertisement