History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-42
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vance Karimi
Reporter: Sverker Abrahamsson
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

Bean managed transactions doesn't work

Created: 11/Aug/06 10:39 AM   Updated: 11/Aug/06 05:16 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. Text File ejb-jar.xml.vsl.patch (2 kb)



 Description   
When creating a session bean with bean managed transactions the following exception is thrown at deploy:

"java.lang.IllegalStateException: Container BillingServiceBean: it is illegal to inject UserTransaction into a CMT bean"

This is because the ejb-xml template always set transaction management to container.

 All   Comments   Change History      Sort Order:
Comment by Sverker Abrahamsson [11/Aug/06 10:39 AM]
A patch solving this issue

Comment by Vance Karimi [11/Aug/06 05:16 PM]
Patch applied.
NOTE: Manageable entity session beans cannot determine transaction type (support can be added in EJB3ManageableEntityFacade if you need this for manageable entity session beans), therefore they remain container managed transaction demarcation by default. Likewise for DAO session beans.
Thanks Sverker