此内容没有您所选择的语言版本。
2.2. Getting Started with Camel on EAP Subsystem
Camel on EAP Subsystem provides you the capability to add Camel routes to your Java EE applications.
2.2.1. Running Camel on EAP Subsystem 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Before running the subsystem, you need to check your system to make sure that you have a working Java 1.7 version and Maven 3.2.3 version or higher.
- Standalone Server: Run the following command in your JBoss EAP home directory.
bin/standalone.sh -c standalone-camel.xml
$ bin/standalone.sh -c standalone-camel.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Domain Mode: Run the following command in your JBoss EAP home directory.
bin/domain.sh -c domain-camel.xml
$ bin/domain.sh -c domain-camel.xmlCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2.2. Enabling Camel on EAP Subsystem 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The Camel on EAP distribution patch does not modify the existing JBoss EAP configuration files. However, it comes with a number of additional configuration files.
Run the following command to add the Camel subsystem to an existing configuration.
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
bin/fuseconfig.sh --configs=camel --enable
$ bin/fuseconfig.sh --configs=camel --enable
2.2.3. Disabling the Camel Subsystem 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
If you do not want to add camel subsystem into your deployment, set the attribute
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
enabled to false. For example, In jboss-all.xml file, set the attribute enabled to false in jboss-camel XML element
<jboss umlns="urn:jboss:1.0"> <jboss-camel xmlns="urn:jboss:jboss-camel:1.0" enabled="false"/> </jboss>
<jboss umlns="urn:jboss:1.0">
<jboss-camel xmlns="urn:jboss:jboss-camel:1.0" enabled="false"/>
</jboss>