This content has been marked as final.
Show 1 reply
-
1. Re: http request thread persist while different thread does not same entity manager
alanmehio2 Nov 25, 2011 11:38 AM (in response to alanmehio2)The Asynchronous process ( new thread created) which is not on the http request thread was market as @TransactionAttribute(TransactionAttributeThype.NOT_SUPPORTED) which made any change to update the TreeCache only and not the database upon calling EntityManger.persist(EntityBean) followed by EntityManager flus()
By annotating it with TransactoionSupportType.SUPPORTS sort the problem and persist into the database.
The only difference between the admin page and this process was the transaction support.