When working with container-managed transactions you need to use JtaTransactionManager.
When working with container-managed transactions you need to use JtaTransactionManager: As far as I understand in your case it should work fine since bernate is already configured to use JTA transactions via its properties.
Okay... I added the above for good measure. I don't know if the issue is transactions or not now. If I call testService.
DeleteTest(test) there is no error. If I call it a second time, I get "org.hibernate. ObjectDeletedException: deleted instance passed to merge: db.
Co05in. Test#". The frustrating thing is I can see bernate issuing select statements to the db but it never issues any create, delete, or update queries.
– Quaternion Apr 26 at 19:05 +1 because I think this helped, I updated the question, and the questions applicationContext. Xml to incorporate it. – Quaternion Apr 26 at 19:20 @Quaternion: Note that my assumption that bernate is correctly configured for JTA transactions may be wrong.
Also the way you obtain EntityManager looks strtange, try to inject it via @PersistenceContext. – axtavt Apr 26 at 19:41 I don't know why but using @PersistenceContext now persists the data to the DB! – Quaternion Apr 26 at 20:00 @Quaternion: As far as I understand, EntityManager obtained from createEntityManager() doesn't participate in Spring managed transactions at all.
– axtavt Apr 267 at 8:14.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.