davsclaus opened a new pull request, #24795:
URL: https://github.com/apache/camel/pull/24795

   ## Summary
   
   CAMEL-22534 fixed a concurrency issue where the Splitter shared the 
non-thread-safe JPA `EntityManager` map across parallel sub-exchanges. The same 
fix was missing from three other EIPs:
   
   - **MulticastProcessor** — strip `CamelEntityManager` when 
`parallelProcessing` is enabled
   - **RecipientListProcessor** — strip `CamelEntityManager` when 
`parallelProcessing` is enabled
   - **WireTapProcessor** — always strip `CamelEntityManager` since wire tap 
runs asynchronously
   
   When the property is removed, the JPA component creates a fresh dedicated 
EntityManager for each branch, avoiding concurrent access to a non-thread-safe 
EM and HashMap corruption.
   
   No JPA dependency is introduced in `camel-core-processor` — the property key 
is just a string constant from `Exchange`.
   
   ## Test plan
   
   - [x] `camel-core-processor` builds successfully
   - [x] 78 parallel multicast / recipient list / wire tap tests pass
   - [x] camel-jpa `JpaWireTapTest` passes
   
   _Claude Code on behalf of davsclaus_
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to