How to add dependent EAP 6 modules names to which a SwitchYard application depend on while packaging it?
Issue
- In order to develop a
SwitchYard
application to interact with a database a developer created a simpleSQL binding
to theSwitchYard
application, similar to one of the quickstart examplescamel-sql-binding
and deployed it successfully toEAP 6.1
container. Now, developer wants to see if theSwitchYard
application could reference an existing classes (packaged in a dependencyjar
installed in form of anEAP 6 module
in theEAP 6.1
container), but developer consistently gets aClassNotFoundException
when referencing any of the classes in the dependencyjar
. - Developer tried both
Global
andDynamic modules
features ofEAP 6.1
to add the dependency to theSwitchYard
application throughjboss-deployment-structure.xml
file and packaging it to theSwitchYard
application archive, along with every way shown in theEAP 6
Administration and Development guides to add a dependency to the class loader for theSwitchYard
application, but nothing seems to work. - Is there a specific way to add an external dependency to
SwitchYard
application?
Environment
- 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.