Camel Spring Boot

Smooks

Transform, route and bind XML and non-XML data, such as EDI, CSV, JSON and YAML, with Smooks.

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-smooks-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 7 options, which are listed below.

Name Description Default Type

camel.component.smooks.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.smooks.enabled

Whether to enable auto configuration of the smooks component. This is enabled by default.

Boolean

camel.component.smooks.lazy-start-producer

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

Boolean

camel.component.smooks.smooks-factory

The SmooksFactory that creates the Smooks instance of each endpoint, to which the configuration file is then added. When not set, a new Smooks instance with the Smooks defaults is used. The option is a org.smooks.SmooksFactory type.

SmooksFactory

camel.dataformat.smooks.allow-external-entities

Whether to allow the XML reader used by Smooks to resolve external XML entities (external general and parameter entities) when parsing XML input. This is disabled by default so that external entities in the message body are not resolved; enable it only for trusted legacy configurations that rely on external entity resolution.

false

Boolean

camel.dataformat.smooks.enabled

Whether to enable auto configuration of the smooks data format. This is enabled by default.

Boolean

camel.dataformat.smooks.smooks-config

Path to the Smooks configuration file.

String