How to add dependent EAP 6 modules names to which a SwitchYard application depend on while packaging it?

Solution Verified - Updated -


  • In order to develop a SwitchYard application to interact with a database a developer created a simple SQL binding to the SwitchYard application, similar to one of the quickstart examples camel-sql-binding and deployed it successfully to EAP 6.1 container. Now, developer wants to see if the SwitchYard application could reference an existing classes (packaged in a dependency jar installed in form of an EAP 6 module in the EAP 6.1 container), but developer consistently gets a ClassNotFoundException when referencing any of the classes in the dependency jar.
  • Developer tried both Global and Dynamic modules features of EAP 6.1 to add the dependency to the SwitchYard application through jboss-deployment-structure.xml file and packaging it to the SwitchYard application archive, along with every way shown in the EAP 6 Administration and Development guides to add a dependency to the class loader for the SwitchYard application, but nothing seems to work.
  • Is there a specific way to add an external dependency to SwitchYard application?


  • 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