Description
This issue was reported by Nicolas Dutertry on the karaf user list:
http://karaf.922171.n3.nabble.com/JPA-and-transaction-issue-in-Karaf-4-0-4-td4045208.html
He also provided a repository with a demo (which I forked):
https://github.com/cschneider/test-jpa
In short TestServiceImpl has a non Transactional method:
public void delete(String... names) {
for (String name : names)
}
It calls DeleteManager
@Transactional
public void delete(String lastName)
If the method TestServiceImpl.delete is called with one name then it works.
If it is called with two names it fails.
It is not even necessary to first create the person records to show the error.
A workaround is to make the method TestServiceImpl.delete also transactional. Then it works.
I will create a test case in the jpa code and fix the issue.