About Question enthuware.oce-ejbd.v6.2.422 :
Posted: Wed Jul 31, 2013 4:24 am
The correct answer is not precise in my opinion:
For this snippet to work, it needs to statically import TransactionManagementType:
but it is not mentioned in question. The second option is to explicitly specify transaction type:
Thanks,
Jarek
Code: Select all
@Stateless
@TransactionManagement(BEAN)
public class MySessionBean implements MySession {
...
}
Code: Select all
import static javax.ejb.TransactionManagementType.*;
Code: Select all
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class MySessionBean implements MySession {
...
}
Thanks,
Jarek