Bug 346268 - JPA Transaction are not handled correctly within "org.eclipse.ebpm.DatabaseService
Summary: JPA Transaction are not handled correctly within "org.eclipse.ebpm.DatabaseSe...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: eBPM (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Andrea Zoppello CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 10:55 EDT by Andrea Zoppello CLA
Modified: 2017-09-13 11:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Zoppello CLA 2011-05-18 10:55:16 EDT
JPA Transaction are not handled correctly within "org.eclipse.ebpm.DatabaseService"

When multiple threads are attempting to register service the following exception
occurs:

"Exception Description: Transaction is currently active"
Comment 1 Andrea Zoppello CLA 2011-05-18 10:55:35 EDT
This is beacuse this class could be used in concurrent way and rely on EntityManager stored as 
an instance member of the "org.eclipse.ebpm.DatabaseService" is not correct.

It could happen that methods like em.beginTransaction throw exception like:

"Exception Description: Transaction is currently active"