@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Script updatePerson(Person p) {
Person entity = entityManager.merge(p);
//entityManager.flush();...
Type: Posts; User: publicocean0; Keyword(s):
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Script updatePerson(Person p) {
Person entity = entityManager.merge(p);
//entityManager.flush();...
I have the same problem but i tried all your suggesions above without success.
----> applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans...
I implement a pool of runnable class type Event.
Every Event instance might update some data on database using JPA.
My problem is : how is possible inject ,using spring, the persistent context...
I tested my web application using 2 browsers.
In details , I accessed the same edit form from 2 browsers.
I click to upodate the entity from the first one ... then i click to update the entity from...
I tested my web application using 2 browser.
I access the same edit form from 2 browser.
Then i click updated entity from the first one ... then i update the entity from the second one. No problem...