wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EntityManager.getTransaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EntityManager.getTransaction" Watch "EntityManager.getTransaction" New topic
Author

EntityManager.getTransaction

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
In J2se environment,if the same EntityTransaction instance returned every time when invoke EntityManager.getTransaction()?
[ December 12, 2008: Message edited by: Fu Dong Jia ]

who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
I think that's a valuable question.
Can anyone explain it?
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
whereever this method is called, means inside the Buisness method or at other place, it will always return the current transaction.


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EntityManager.getTransaction
 
Similar Threads
How to create a Template for EntityManager in a WebApplication
Resource-Local EntityManagers with EntityTransaction
Can't persist data into Oracle 10g by the default persistence layer of EJB 3.0 (Hibernate)
CMT doesn't commit DB changes in a POJO
refresh state problem