Hi,

I have trouble starting a route between JPA endpoints, that fails with 
"javax.persistence.PersistenceException: 
javax.persistence.TransactionRequiredException: no transaction is in progress"
even though I set a JpaTransactionManager and setTransacted(true) on every 
endpoint. 

I have one consumer, that reads Data objects from a database defined in the 
persistence.xml, and multiple producers, with bootstrapped persistence units 
(their addresses come from an enum).
The Data is supposed to get copied to one of the producer databases (which one 
depends on the Data.database field).

Setting .transacted() on the route also results in "No bean could be found in 
the registry of type: PlatformTransactionManager", but from my understanding 
this isn't necessary anyways, since the consuming endpoint is already 
transacted.

I will include the source code of my Camel startup and the route in question. 
Also, I will include my implementation of PersistenceUnitInfo and a 
JpaEntityManagerFactory that I use to bootstrap the producer connections. 
We're using Camel 3.17.0, JEE (no Spring!) and Oracle databases.


Thanks in advance for any insights! I'm totally new to Camel btw, so sorry for 
obvious mistakes.
Greetings
Noel

Reply via email to