[ 
https://issues.apache.org/jira/browse/CAMEL-22534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18029481#comment-18029481
 ] 

Claus Ibsen commented on CAMEL-22534:
-------------------------------------

This is a bit expected when using JPA. But yeah it should be documented, and to 
see if we can come up with a better solution than "hack" the splitter EIP.

> JPA: fails if used with splitter (with parallelProcessing)
> ----------------------------------------------------------
>
>                 Key: CAMEL-22534
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22534
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>
> The entityManager is not thread-safe, therefore if the jpa is used with 
> splitter, with parallelProcessifng mode enabled, the jpa does not work 
> correctly. The result might be large variety of exceptions like 
> (sql.exec.ExecutionException, org.hibernate.exception.GenericJDBCException, 
> java.util.ConcurrentModificationException and probably others)
> It would be nice if such configuration worked out of the box.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to