consumeLockEntity option from SwitchYard JPA Binding does not work properly in multi node distributed environment
Issue
- Users are using a
SwitchYardapplication deployed on multipleFSW 6.0.0nodes that use aJPA bindingto poll new records from a database. In the next step after polling the records from the database theSwitchYardservice is supposed to convert theEntitytoXMLand should send it to aJMS queue(throughJCA-JMS Binding) and update the value for a respective database column accordingly once this activity finishes. It works fine in single node environment where theSwitchYardapplication is only running on singleFSWnode but, where the application is deployed in multipleFSWnodes it seems that the service running on the other nodes also consumes the same entity and therefore produces duplicate results in the end. - On
Camel JPA componentlevel users have set attributeconsumeLockEntityto true as suggested in this KCS [1] , however still the issue persists. Is thisconsumeLockEntityproperty supposed to work as expected while used withJPA BindingofSwitchYardas well in case of a distributed environment? Is it a known issue inSwitchYard?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
