Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.422 :

Posted: Wed Jul 31, 2013 4:24 am
by kezman9
The correct answer is not precise in my opinion:

Code: Select all

@Stateless
@TransactionManagement(BEAN)
public class MySessionBean implements MySession { 
...
}
For this snippet to work, it needs to statically import TransactionManagementType:

Code: Select all

import static javax.ejb.TransactionManagementType.*;
but it is not mentioned in question. The second option is to explicitly specify transaction type:

Code: Select all

@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class MySessionBean implements MySession { 
...
}

Thanks,
Jarek

Re: About Question enthuware.oce-ejbd.v6.2.422 :

Posted: Wed Jul 31, 2013 11:07 am
by admin
Added.

thank you for your feedback!