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 persistence
before consuming messages toSwitchYard
applicationSwitchYard
developers 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.0
users 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.xml
usesSwitchYard
community version of libraries (e.g.2.0.0.Final
) and although theSwitchYard
application is packaged as ajar
and then it is bundled inside aWAR
to be deployed onFSW 6.0.0
container. Then only while deploying thisWAR
the 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, tools, and much more.