- The route models (definition classes) preserve property placeholders, which allows round trip editing, and also prevents showing potential sensitive information
- Added onPrepareFailure option to Dead Letter Channel to allow a custom processor to prepare the Exchange before sending to the dead letter queue.
- MongoDB tailable consumers now allow setting the
- Using setFaultBody / setFaultHeader behaves similar to setBody / setHeader to preserve existing headers/attachments by setting on existing IN or OUT message.
- Java DSL using choice with end vs endChoice now validates you use them as intended. Any misconfiguration now throws an exception explaining the problem.
- POJO Producing and POJO Consuming lifecycle is now in sync with CamelContext which ensures it works as similar to Camel Routes does. Also the created producer/consumer is stopped when CamelContext is stopping to cleanup properly.
- JMS component now allows configuring concurrentConsumers/maxConcurrentConsumers separately between from(jms) vs to(jms) using request/reply over JMS
- Added SEARCH operation to Elasticsearch component
- The Properties component (property placeholder) now supports an encoding option to allow reading the .properties files using a specific charset such as UTF-8. By default ISO-8859-1 is used (latin1)
receviveBufferSizeoption to the FTP component to make download faster. The size is by default 32kb buffer.
- The Aggregator2 EIP now allows an external source using a
AggregateControllerto control the aggregator, such as for forcing completing a group or all groups, or query runtime information from the aggregator. A default controller is provided out of the box if none has been configured.
- The Aggregator2 now enlists in JMX using a
ManagedAggregateProcessorMBeanwhich has more information, and also allows using the aggregate controller to control it.
- The Aggregator2 now includes more runtime statistics which can be accessed from Java and JMX about number of incoming and completed exchanges, and per different completion triggers.
- The Aggregator2 now supports pre-completion mode if the aggregation strategy implements
PreCompletionAwareAggregationStrategy. This supports the use-case where an incoming Exchange are used to determine if the current aggregated group is completed or not. If completed the group is emitted as-is, and the new incoming Exchange is used to start a new group from scratch.
- Added options to Mail consumer so it can skip or handle a mail message that cannot be read from the mail server in the batch; and then move on to read the next message. This ensures the consumer can deal with mail boxes that has problematic mails that otherwise will cause no mails to be retrieve by the consumer in the batch.
- The runtime route processors and their corresponding model definition are now linked by their id using
HasId, so its easier to obtain the processor or model definition from the
getProcessorDefintion(id)api on CamelContext.
- CamelContext now also includes a getManagedProcessor API to easily get the mbean client api for the processor, so you can access the runtime JMX statistics from Java code.
- Spring Boot applications now block the main thread of the execution
- Spring Boot automagically loads XML routes definitions from classpath
MainListenerto make it easier for Camel Boot / Standalone Camel to implement custom logic to trigger during the starting and stopping of the application.
- Camel Jackson now provides
- Ability to refer to existing hazelcast instance by id, using Hazelcast Component
- Direct and Direct-VM now supports the failIfNoConsumers option
- Making it easier to add custom Type Converter to your Camel applications without having to use the META-INF file. In Spring or Blueprint just add them as <bean>s. See more details at Type Converter documentation.
- camel-cxf PAYLOAD supports stream cache out of box.
BridgePropertyPlaceholderConfigurersupports to handle the jasypt encryption inside and outside of the camelContext.
The camel-aws component now support Amazon DynamoDB version 2
The Wire Tap eip now also emits event notifications when sending the Exchange to the wire tap destination
- Camel Test has new option isDumpRouteStats that dumps all route usage statistics as XML files in target/camel-route-stats directory, which can be used to inspect "route coverage" reports.
- Now Camel Netty component doesn't intercept consumers with
- Now Netty HTTP resolves OPTIONS prefix matches earlier
- Using Load Balancer with Java DSL now builds the route model using the specific model types, which renders a more accurate route model
- Enhanced the PredicateBuilder to support vargs and list in the "or" builder method
- Using custom
HttpBindingwith HTTP and HTTP4 is now easier as they can be instantiated using a default no-arg constructor
readLock=idempotentto the File2 consumer which allows to reuse an idempotent repository as read-lock which enables Camel to run reliable in clustered mode, where each node competes for the same files from a shared file system. This requires that the idempotent repository supports clustering such as Hazelcast Component or Infinispan - or using the JDBC for a shared database table.
- Camel RX now ensures that observe and subscribe are done within an unit of work to ensure on completions is executed, such as they are done when you use regular Camel routes.
- The JMS component now includes the underlying
javax.jms.Sessioninstance on the Camel message which allows end users to easier to use client acknowledge mode, in case the client wants to use the session to call recover or rollback.
completionEageroption to Idempotent Consumer to whether to complete the idempotent consumer eager or when the exchange is done.
- Working with the Camel source code in Eclipse with m2eclipse plugin improved to avoid endless file changed detection and recompile the source.
- Add option
suppressExceptionsto JSonPath which allows to ignore exceptions such as NoSuchPathException when the json payload does not contain the path defined in the json expression.
- Spring Boot now creates
ConsumerTemplatebeans only if those are not defined by the user.
camel-archetype-spring-bootto create a new Camel Spring Boot project using Maven.
camel-archetype-cdito create a new Camel CDI project using Maven.
- FTP2 doesn't support absolute directories in endpoint URIs. In such cases, paths will be treated as relative and WARN message will be printed in logs. In future versions, there'll be no such assumption and validation exception will be thrown instead.
- Swagger module now supports getting api-docs from multiple camel contexts in the JVM. The entry point at /api-docs now lists the contexts detected, and you need to append the context id in the path, eg /api-docs/myCamel
- FTP2 supports
autoCreate=truefor ftp consumers
- Rest DSL now supports to define parameter using fine grained details for the Swagger api documentation. For an example see the
camel-example-servlet-rest-tomcatin the Apache Camel distribution.
- The Simple language now has a equals ignore case operator (=~) when comparing with string values
- If using <contextScan> with Spring or Blueprint to filter RouteBuilder classes, then Camel will now by default only look for singleton beans. You can turn on the old behavior to include prototype scoped with the new option
- The IdempotentRepository now supports clear operation, to clear the repository, and expose it over JMX.
- Netty4 in clientMode will now automatic re-connect if the connection was disconnected to the server.
throwExceptionEIP now supports creating a new exception instance from a simple language expressions, which allows to make it dynamic based on information from the current Exchange.
- When using Expression or Predicate in the routes, you can refer to the value as an external resource by using resource:classpath:path or resource:file:path - for example
- Added option useMessageBodyForSql to the SQL Component which allows to use more dynamic SQL queries instead of the fixed SQL defined in the endpoint uri.
- Added sticky option to failover Load Balancer so the load balancer can start from the last known good endpoint.
- Added option
shareUnitOfWorkto Content Enricher eip
- Content Enricher with enrich and pollEnrich now supports dynamic endpoint uris computed using an Expression that allows to use values from the current Exchange so you for example can poll a file which name is computed from data from the Exchange etc. This change breaks the XML DSL a little bit and there is an easy migration effort. The Java DSL stays backwards compatible.
- The Camel Karaf commands about routes now no longer require the context-id as 2nd parameter that is optional - if none provided then the command is a bulk operation for all Camel contexts.
- A simpler version of dynamic to with the new <toD> and toD in the DSL, documented at Message Endpoint
- Wire Tap now supports dynamic endpoint uris, in similar way the new <toD> and toD does
- Rest DSL now supports the new <toD> and toD in the rest-dsl.
- The EIP's now have more specialized processor mbeans in Camel JMX and you can also dump the processor as xml source to represent how it would appear in xml dsl
- Configuring Camel JMX using JVM system properties now all take precedence over any existing configuration (some option was not doing that)
- Introduced Extended JMX statistics level to gather additional metrics during runtime.
- All the Camel-AWS components now support the definition (through URI options) of Proxy Host and Proxy Port.
- The HTTP based consumers no longer include Camel headers in the responses by default (they already did this for the producers to not include Camel headers when calling a HTTP service).
- Bindy now supports having multiple pojos as models in the same java package. Instead of configuring using package names, you configure using class names.
- You can configure on the Type Converter registry what should happen if a duplicate type converter is being added (override, ignore or fail) as well configure the logging level.
- Using CamelProxy now binds the method parameters to the message body/header using Camel annotations to define the binding rules. If no annotations is defined the the parameter is assumed the message body. You can turn this off to have the old behavior.
- Camel JMX using custom JMX operations/attributes with
@ManagedResourcenow also includes the default set of JMX from Camel, so you have both worlds.
completeAllOnStopoption to Aggregator2 to allow to complete all pending exchanges from the aggregation repository when stopping. For example when using a memory based repository to ensure all of those exchanges are processed when stopping.
- Allow to configure the OK status code ranges for HTTP, HTTP4, Netty HTTP, Netty4 HTTP, and Jetty components for their producers. The default range is 200-299.
- Now Vert.x endpoints support multiple consumers.
- Support for TAR files: marshalling and unmarshalling via a data format; splitting; aggregating. See Data Formats section below.
- SJMS component has been aligned to bind between Camel Message and JMS Message in the same way as JMS component does that.
- Added failsafe check to ensure JMS consumer will no longer send back a reply message to the same destination as itself to avoid endless loop. There is an option to turn this off in case you know what you are doing.
- The Camel-hazelcast component now supports the Ringbuffer data structure.
- New XSLT Aggregation Strategy to merge two messages with an XSLT file. See javadoc (link valid once this release is published). It is also accessible from the toolbox:
- A pure Java based Swagger component that also supports any JVM (standalone, war, jee, spring boot, et all) as the platform for API of the Camel Rest DSL. (previously a servlet was required).
- Data Format's is now also enlisted in JMX under the dataformats group (requires the data format implementation is a Camel
- Configuring context-path in Rest DSL will now use the context-path when creating the http server (except for servlet as servlet urls are relative)
OptaPlanner compoent extended to support async solving, daemon mode and ProblemFactChange processing
Fixed the following issues:
- camel-paho - For MQTT messaging using Eclipse Paho client
- camel-pdf - For creating PDF documents
- camel-grape - allows you to fetch, load and manage additional jars when CamelContext is running.
- camel-slack - allows you to connect to an instance of Slack and delivers a message contained in the message body via a pre established Slack incoming webhook.
- camel-jolt - for JSON to JSON transformation
- camel-aws-ec2 - Component providing support to Amazon Web Services EC2
- camel-undertow - To use Undertow as HTTP server or client.
- camel-git - A generic Git component
- camel-sjms - SJMS Batch is a specialized component for highly performant, transactional batch consumption from a JMS queue
- camel-http-common - A common base component for reuse among all the various HTTP components we have.
- camel-swagger-java - A pure Java based Swagger component.
- camel-elsql - An extended SQL Component that uses ElSql for defining SQL queries
- camel-jbpm - Sends messages through kie-remote-client API to jBPM.
- Script - to execute a script during routing
- Dynamic To - to send a message to a dynamic computed endpoint. This is a simpler version than using Recipient List