Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Chapter 18. Extensions
An extension is a module that extends the core capabilities of JBoss EAP.
You can extend SwitchYard functionality by creating extension modules for JBoss EAP. Use this feature to:
- Support additional binding types through Camel components not included in the distribution.
- Add data formats and other Camel libraries for use within Camel routing services.
- Implement custom gateway bindings as Camel components.
18.1. Create SwitchYard Extension Module in JBoss EAP Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Procedure 18.1. Create, Register and Build a SwitchYard Extension Module in JBoss EAP
- An extension is deployed in the
modulesfolder of JBoss EAP.Extension modules are placed under themodules/system/layers/soa/org/directory of your JBoss EAP installation. The jar files that make up the module are placed in themodules/system/layers/soa/org/product/subsystem/modulename/maindirectory. Themodule.xmlfile contains definition information. For example, in directorymodules/system/layers/soa/org/apache/camel/saxon/main, themodule.xmlfile looks like this:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Themodule.xmlfile contains the following information:- The module name. The module name is comprised of the directory names for the module underneath the
EAP-Home/modules/system/layers/soadirectory. - Resources required. Notice that the files mentioned in the
<resources>section are in the same directory as themodule.xmlfile. - Dependencies for the module.
- In order to make SwitchYard aware of the extension module, add the module name to the list of extensions defined in the SwitchYard subsystem in
standalone.xml:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Build the application that will be using the module using the mvn clean install command. If there are problems running the JVM tests step locally, use the
-DskipTestsargument.Update thepom.xmlfile for the application. Add the module as a dependency and mark it asprovided.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If the module is created from a jar not supplied with JBoss Fuse Service Works, you must ensure that a
jboss-deployment-structure.xmlfile exists in theapplication-name/src/main/resources/META-INFfolder of the application that will run it. Thejboss-deployment-structure.xmlfile contains information in the following format:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The module name must be the same as the module name defined in step 1 with the same naming rules.
For an example of an extension module and an application, see https://access.redhat.com/solutions/653823.