I wanted to persist an object(ReportBean) to the database, but I got error message:
javax.persistence.TransactionRequiredException: Transactio
You are right, but in your solution you create a nested transaction, that runs insolated from the calling context. Unfortunately, i was not able to find a solution to pass a transctions context like this
@Stateless
public class ValidateReportAction extends ReportAction {
...
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public synchronized String createReport() {