This content has been marked as final.
Show 4 replies
-
1. Re: JTATransaction question
epbernard Oct 28, 2005 4:54 PM (in response to gduan2000)you need to let the Session to be injected by the EJB container to let him handle the flush opening and closing for you
-
2. Re: JTATransaction question
gduan2000 Oct 28, 2005 5:48 PM (in response to gduan2000)"epbernard" wrote:
you need to let the Session to be injected by the EJB container to let him handle the flush opening and closing for you
Could you please tell me more, or is there an example of this injection?
thanks,
g -
3. Re: JTATransaction question
epbernard Nov 4, 2005 5:00 AM (in response to gduan2000)Check some EJB3 tutorials, this is a very basic feature.
@PersistenceContext EntityManager em;
-
4. Re: JTATransaction question
gduan2000 Nov 9, 2005 2:12 AM (in response to gduan2000)epbernard,
Thank you! I got it. I end up changing all the hibernate managed beans to EJB3 entity bean and got rid of the SessionFactory stuff... Now I don't need to worry about the transaction anymore.