Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346268

Summary: JPA Transaction are not handled correctly within "org.eclipse.ebpm.DatabaseService
Product: z_Archived Reporter: Andrea Zoppello <andrea.zoppello>
Component: eBPMAssignee: Andrea Zoppello <andrea.zoppello>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: andrea.zoppello
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

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"