이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Configuration
This chapter details information about the Camel subsytem and deployment configuration.
Camel Subsystem Configuration
The subsystem configuration may contain static system routes
<subsystem xmlns="urn:jboss:domain:camel:1.0">
<camelContext id="system-context-1">
<![CDATA[
<route>
<from uri="direct:start"/>
<transform>
<simple>Hello #{body}</simple>
</transform>
</route>
]]>
</camelContext>
</subsystem>
These routes are started automatically.
Camel Deployment Configuration
If you want to fine tune the default configuration of your Camel deployment, you can edit either the WEB-INF/jboss-all.xml or META-INF/jboss-all.xml configuration file in your deployment.
Use a <jboss-camel> XML element within the jboss-all.xml file to control the camel configuration.
Disabling the Camel Subsystem
If you don’t want the camel subsystem to be added into your deployment, set the enabled="false" attribute on the jboss-camel XML element.
Example jboss-all.xml file:
<jboss umlns="urn:jboss:1.0">
<jboss-camel xmlns="urn:jboss:jboss-camel:1.0" enabled="false"/>
</jboss>
Selecting Components
If you add nested <component> or <component-module> XML elements, then instead of adding the default list of Camel components to your deployment, only the specified components will be added to your deployment.
Example jboss-all.xml file:
<jboss umlns="urn:jboss:1.0">
<jboss-camel xmlns="urn:jboss:jboss-camel:1.0">
<component name="camel-ftp"/>
<component-module name="org.apache.camel.component.rss"/>
</jboss-camel>
</jboss>