How to use @Resource annotation?
- From: Chen <itschenxi@xxxxxxxxx>
- Date: Mon, 6 Oct 2008 02:47:43 -0700 (PDT)
I have a piece of java code here.
@PersistenceUnit
private EntityManagerFactory emf;
@Resource
private UserTransaction utx;
I can find persistence unit in persistence.xml configuration file. But
I cannot find Resource configuration information in a descriptor file.
How does the container do resource injection? Thank you very much.
Chen
.
- Follow-Ups:
- Re: How to use @Resource annotation?
- From: Owen Jacobson
- Re: How to use @Resource annotation?
- Prev by Date: Re: java project
- Next by Date: Re: Unicode support
- Previous by thread: java project
- Next by thread: Re: How to use @Resource annotation?
- Index(es):
Relevant Pages
|