Please help me to understand why object is not getting persisted with following code. It throws javax.persistence.TransactionRequiredException: JBAS011469: Transacti
When you declare the bean as @Stateless then the methods in that bean are by default transactional. Transactional methods commit the persistence state when fully executed.
When you don't have your class annotated with @Stateless methods are not transactional by default and hence you get the mentioned exception.