Testing SwitchYard's JMS binding test case referred in SWITCHYARD-1285 bug throws WELD-001443 error for circular dependencies
Issue
- In order to achieve
JMS persistencebefore consuming messages toSwitchYardapplicationSwitchYarddevelopers like to explore the transaction policy feature ofSwitchYard JMS Binding. In order to evaluate this transaction policy feature while users try to run the test case attached in the SwitchYard community JIRA SWITCHYARD-1285 inFSW 6.0.0users are getting following error.
org.jboss.weld.exceptions.DeploymentException: WELD-001443 Pseudo scoped bean has circular dependencies. Dependency path [Managed Bean [class com.example.switchyard.jms_binding.AnotherTransactionServiceBean] with qualifiers [@Any @Default], Managed Bean [class com.example.switchyard.jms_binding.AnotherTransactionServiceBean] with qualifiers [@Any @Default]]
...
- Do note that for this use case the project's
pom.xmlusesSwitchYardcommunity version of libraries (e.g.2.0.0.Final) and although theSwitchYardapplication is packaged as ajarand then it is bundled inside aWARto be deployed onFSW 6.0.0container. Then only while deploying thisWARthe above error is thrown. How to solve this issue?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.0
- 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.
