| Author |
SCBCD: Closed entity manager
|
sandeeprajsingh tandon
Ranch Hand
Joined: Mar 06, 2009
Posts: 50
|
|
Hi,
I was going through some mock papers and also the EntityManager Api and found this surprising
getTransaction when called on a closed entity manager doesnot throw IllegalStateException, whereas most of the other methods do..even joinTransaction() (when called on a closed em)
Isnt this surprising..want to know people's opinion on why are Specs this way:???
thanks
sandeepraj
|
 |
rajeswari kannan
author
Ranch Hand
Joined: Oct 01, 2006
Posts: 63
|
|
Please find the following at JPA specification 3.1.1 EntityManager Interface section.
* @throws IllegalStateException if the entity manager has
* been closed
|
Rajeswari - Co-Author - Java Certification Training Labs, EPractize Labs
OCPJP 7 | OCAJP 7 |OCE WebServices | OCE JPA | OCE EJB |OCE Webcomponent
|
 |
sandeeprajsingh tandon
Ranch Hand
Joined: Mar 06, 2009
Posts: 50
|
|
Oh, So what i refered was JPA 1.0, my bad...
Thanks for correcting me
Sandeepraj
|
 |
 |
|
|
subject: SCBCD: Closed entity manager
|
|
|