I think what the system says is that you are trying to do a write to the
database while not inside a jta transaction.
As a workaround you can try to inject UserTransaction and begin and
commit the transaction yourself.
Christian
On 08.10.2015 16:01, Mihael Schmidt wrote:
What I don't get here is that the system says "no active transaction"
but I am calling a service which is the only service with this
entitymanager(factory) assigned and it hasn't been doing any calls to
the database (till I get the exception).
The transactions wouldn't even be nested. They would occur one after
another. It seems that the system says: "no more than one connection.
nope ... not you, you are the second. come back tomorrow".
Threading shouldn't be a problem as all the other transactions did
commit successfully.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com