I am using a gateway template in a Java EE project in which I have:
Bean session with extended matching context.
The bean has a transaction attribute that is not supported in order to abort any transaction that will be entered into the database.
The bean has a save method with the established requirement for the transaction attribute new, which will lead to a new transaction, which changes the object and reflects them in the database.
see Gateway: adam bein page-67
Until two days ago, I used GlassFish 3, and everything worked fine. I retrieve the object, make changes, and then call the save method without merging the object. Entity changes will be flushed to the database. But when I changed GlassFish to GlassFish 4, this operation stopped, and now I need to merge the object to clear the changed object to the database.
source
share