javax.persistence.TransactionRequiredException in small facelet application
You’re abusing a CDI managed bean as a business service. It has no clues of transaction management. You’d need to manually manage transactions. As this is usually a pain and you’re apparently using Glassfish, which is a fullworthy Java EE container supporting EJBs, you’d rather like to use a fullworthy EJB for this. When using … Read more