Don't you mean @Stateless, and not @SLSB?
I assume that you are using EJB3 and JPA. You need to use the entity manager to save the entity, otherwise the database will not get updated.
I mean @Stateless. (Dummy code for understanding only)
I think! when you are working on an existing entity & you modify that entity. After your parent transaction is over, we expect your entity manager will be flushed automatically & your entity will be updated in the database.
In my case entity manager is injected in every ComponentBean.
I think it all depends on the transaction attributes.
You have to make sure that the fetching and modification of the entity happen within the same transaction, by annotating the outer ejb with
I think, we don't need to specify this attribute explicitly; it is by default.