[GLASSFISH-121] new assertion: getTransaction() must not be called for JTA entity manager Created: 28/Dec/05  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: verifier
Affects Version/s: 9.0pe
Fix Version/s: not determined

Type: Improvement Priority: Major
Reporter: Sanjeeb Sahoo Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 121

 Description   

Secion 3.1.1 of Java Persistence API 1.0 PFD says the following:

/**

  • Return the resource-level transaction object.
  • The EntityTransaction instance may be used serially to
  • begin and commit multiple transactions.
  • @return EntityTransaction instance
  • @throws IllegalStateException if invoked on a JTA
  • EntityManager or an EntityManager that has been closed.
    */
    public EntityTransaction getTransaction();

Verifier should report error if a program uses getTransaction() on a JTA entity
manager.



 Comments   
Comment by Sanjeeb Sahoo [ 12/Feb/06 ]

Difficult to do without doing call flow analysis. This should be implemented
inside NB environment. Marking it as an RFE.
– Sahoo

Comment by Tom Mueller [ 06/Mar/12 ]

Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

Generated at Sat Jul 04 14:26:37 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.