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