Testing SwitchYard's JMS binding test case referred in SWITCHYARD-1285 bug throws WELD-001443 error for circular dependencies

Solution Unverified - Updated -

Issue

  • In order to achieve JMS persistence before consuming messages to SwitchYard application SwitchYard developers like to explore the transaction policy feature of SwitchYard 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 in FSW 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 uses SwitchYard community version of libraries (e.g. 2.0.0.Final) and although the SwitchYard application is packaged as a jar and then it is bundled inside a WAR to be deployed on FSW 6.0.0 container. Then only while deploying this WAR 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content