Camel 2.17.0 release (currently in progress)
New and Noteworthy
Welcome to the x.y.z release which approx XXX issues resolved (new features, improvements and bug fixes such as...)
- The component documentation generated from the source code has been double checked to be up to date and include all the options the endpoints supports.
- Upgraded camel-hbase to Hadoop 2.x and HBase 1.1.x
- Camel commands for Spring Boot
- Many improvements to Camel Kura
- Added transacted option to SQL Component when used as a consumer in a transacted route.
- Added support for UPDATE operation to ElasticSearch.
- Allow to reuse existing configured Elasticsearch Client on the ElasticSearch component, instead of creating a client per endpoint.
- The
include
andexclude
options on File2 and FTP endpoints is now case in-sensitive out of the box. - Resource based component such as XSLT, Velocity etc can load the resource file from the Registry by using
ref:
as prefix. - Upgraded camel-amqp to the latest qpid-jms-client (also AMQP < 1.0 is not supported anymore).
- Many improvements to Camel AMQP component.
- The Metrics Component allows to capture Message History performance statistics with the
MetricsMessageHistoryFactory
- Reduced the number of mbeans enlisted in the services tree, to only include mbeans that has value to be managed.
- The Elasticsearch Component now supports MultiGet operation
- The Throttler has been improved to be more performant and use a rolling window for time periods which gives a better flow.
- The
setHeader
andsetExchangeProperty
allows to use a dynamic header key using the Simple language if the name of the key is a Simple language expression. - Add collate function to Simple language to make it easier to split a message body into sub lists of a specified size. The function is similar to the collate function from Groovy.
- The Camel Run Maven Goal is able to auto detect if its a OSGi Blueprint or CDI project so end users no longer have to explicit configure this on the plugin.
- Camel-Elasticsearch now supports Multiget, Multisearch and exists operation
- Camel-Git now supports Cherry-pick operation
- Stopping the
Main
class from JMX will now trigger shutdown of the Main class/JVM also, as it does when hitting ctrl + c. - Added option to skipFirst to the Tokenizer language to make it easy to skip the very first element, when for example splitting a CSV file using the Splitter EIP.
- The Rest DSL now supports default values for query parameters
- Exchange and Message only output id in their toString method to avoid outputting any message details such as sensitive details from message bodies.
- Camel Error Handler no longer log message body/header details when logging the Message History. This avoids logging any sensitive details from message bodies.
- Camel Exception Clause and Error Handler now supports using a custom
Processor
to be invoked right after an exception was thrown using the new onExceptionOccurred option. - RabbitMQ consumer more resilient to auto re-connect in case of connection failures
- The Camel CDI component has been improved to better fit into the CDI programming model, cover a larger set of containers, and provide these new features:
- The Camel events from the
org.apache.camel.management.event
package (likeCamelContextStartedEvent
) can be observed as CDI events - The new CDI event Camel endpoint enable CDI events to be seamlessly consumed from (respectively produced by) Camel consumers (respectively Camel producers)
- CDI beans annotated with the
@Converter
annotation are automatically registered as type converters - The CDI Camel contexts can be properly customised programmatically in bean constructor or
@PostConstruct
lifecycle callback - Camel routes configured in
RouteBuilder
beans are added before the corresponding Camel contexts get started - CDI Camel contexts are now properly adapted when deployed in OSGi containers and are registered as OSGi services
- Proper support of multiple Camel contexts across all the features
- The Camel events from the
Fixed these issues
- The Swagger Java now parses nested types in the POJO model that has been annotated with the swagger api annotations to use in the schema api model
- Fixed Rest DSL with apiContextPath fail to start if there are 2 ore more rest's in use.
- Paho component name is not limited to 4 characters anymore.
- Fixed Spring Boot not starting Camel routes if running in Spring Cloud.
- Fixed an issue with Swagger Java using api-docs could lead to api-doc route being added multiple times
- Fixed a few things missing in the generated swagger model when using Swagger Java
- Fixed using
statement.xxx
options on the JDBC consumer would only be used in first poll. - Fixed HTTP and HTTP4 to keep trailing slash if provided in uri when calling remote HTTP service.
- Fixed OnCompletion to keep any caught exception stored as property on the
Exchange
which allows to access that information to know if there was an exception during routing. - Fixed an issue with Bean component or Simple language with OGNL method call, would pick method with java.lang.Object type over a better suited method, when the method is overloaded.
- Fixed
camel-blueprint
to wait for the bundles with the component and data-formats the Rest DSL has been configured to use, are available before starting Camel. - Fixed an issue with Error Handler would log any handled(true) exceptions.
- Fixed a memory leak if adding/removing routes using Idempotent Consumer where the repository would not be removed from the JMX registry when routes is removed.
- Fixed Idempotent Consumer would not propagate exception thrown from
IdempotentRepository
to Camel's Error Handler such asonException
New Enterprise Integration Patterns
New Components
- camel-kubernetes - Integrates Camel with Kubernetes
- camel-aws - AWS kinesis streams component added
- camel-aws - DynamoDB streams component added
- camel-ignite - for working with Apache Ignite.
- camel-mllp - for working with the HL7 MLLP protocol. This is an alternative to HL7 component.
- camel-spark - bridges Apache Spark computations with Camel endpoints
- camel-sql - Now supports calling stored procedures using the new sql-stored component.
- camel-braintree - for interacting with Braintree Payments.
New DSL
New Annotations
New Data Formats
- MIME-Multipart - mime based data format.
- LZF Data Format - LZF based data format.
New Languages
New Examples
- camel-example-cdi-metrics - illustrates the integration between Camel, Dropwizard Metrics and CDI.
- camel-example-cdi-properties - illustrates the integration between Camel, DeltaSpike and CDI for configuration properties.
- camel-example-cdi-osgi - a CDI application using the SJMS component that can be executed inside an OSGi container using PAX CDI.
- camel-example-cdi-rest-servlet - illustrates the Camel REST DSL being used in a Web application that uses CDI as dependency injection framework
- camel-example-spring-boot-metrics - showing a Camel spring-boot application that report metrics to Graphite. Requires Graphite running on your network.
- camel-example-widget-gadget-cdi - The Widget and Gadget use-case from the EIP book implemented in Java with CDI dependency Injection.
- camel-example-widget-gadget-java - The Widget and Gadget use-case from the EIP book implemented in plain old Java Main without any kind of application server.
- camel-example-widget-gadget-xml - The Widget and Gadget use-case from the EIP book implemented in Spring XML without any Java code or any kind of application server.
New Tutorials
API breaking
- As part of the Camel CDI component refactoring:
- The
@ContextName
qualifier does not have a default empty value anymore as it is irrelevant - The CdiPropertiesComponent class has been removed, the standard PropertiesComponent can be used instead
- The
Known Issues
Dependency upgrades
- Apache Cassandra from 2.1.8 to 2.2.2
- Apache Deltaspike from 1.5.1 to 1.5.2
- Apache Gora from 0.6 to 0.6.1
- Apache Jackrabbit from 2.11.0 to 2.11.3
- Apache Kafka from 0.8.2.2 to 0.9.0.0
- Apache Lucene from 4.10.4 to 5.2.1
- Apache Mina from 2.0.9 to 2.0.10
- Apache OpenEjb from 4.7.2 to 4.7.3
- Apache Solr from 4.10.4 to 5.2.1
- Aws SDK Java to version 1.10.37
- Atmosphere from 2.4.0 to 2.4.1.4
- Cassandra driver from 2.1.8 to 2.1.9
- Cassandra-unit from 2.1.9.2 to 2.2.2.1
- Cglib from 3.1 to 3.2.0
- Classmate from 1.3.0 to 1.3.1
- Chunk from 3.0.1 to 3.1.2
- Drools from 6.2.0.Final to 6.3.0.Final
- EHCache from 2.10.0 to 2.10.1
- Elasticsearch from 1.7.3 to 2.0.0
- Embedded Mongodb from 1.50.0 to 1.50.1
- Facebook4j from 2.3.1 to 2.4.1
- GAE from 1.9.26 to 1.9.28
- Google Gson from 2.4 to 2.5
- Hazelcast from 3.5.2 to 3.5.4
- Infinispan from 8.0.1.Final to 8.1.0.Final
- Jackson from 2.6.3 to 2.6.4
- Jboss Xnio from 3.3.1.Final to 3.3.2.Final
- Jboss Weld from 2.3.0.Final to 2.3.2.Final
- Jbpm from 6.2.0.Final to 6.3.0.Final
- Jgit from 4.1.0.201509280440-r to 4.1.1.201511131810-r
- Joda-time from 2.8.2 to 2.9.1
- Json-path from 2.0.0 to 2.1.0
- Jt400 from 8.6 to 8.7
- Kie from 6.2.0.Final to 6.3.0.Final
- Maven Exec plugin from 1.2.1 to 1.4.0
- Mongodb Java driver from 3.0.4 to 3.2.0
- Mvel from 2.2.6.Final to 2.2.7.Final
- Ognl from 3.1 to 3.1.1
- Olingo from 2.0.4 to 2.0.5
- Optaplanner from 6.2.0.Final to 6.3.0.Final
- Pax-exam from 4.6.0 to 4.8.0
- Spring 4.1.x to 4.2.x
- Spring-Boot 1.2.x to 1.3.x
- Spring Integration 2.x to 4.x
- slf4j-api 1.6.x to 1.7.x
- Undertow from 1.3.3.Final to 1.3.7.Final
- Vertx from 3.1.0 to 3.2.0
- Zookeeper from 3.4.6 to 3.4.7
Important changes to consider when upgrading
- This is the last release that will support Java 1.7. Releases after this is expected to require Java 1.8+.
- Any custom component that supports suspension in doSuspend/doResume should implement the new
Suspendable
marker interface, so Camel knows there is custom logic for suspension in the component. - Exchange and Message only output id in their toString method to avoid outputting any message details such as sensitive details from message bodies.
- Removed camel-hbase as Karaf feature as it did not really work well in OSGi
- camel-infinispan requires Java 8.
- Support for Spring 4.0.x is deprecated.
- Moved some Camel tooling related dependencies (such as maven/plexus) from the Camel Parent BOM to the tooling BOM (to have them separated).
- camel-amqp do not support 0.9 anymore.
- camel-spring-integration feature has been removed from the Camel karaf.
- The Mail component now requires to configure to, cc, and bcc using lower case keys, eg to=foo@bar.com, instead of To=foo@bar.com as previously.
- The File consumer no longer probe the file content by default. See the option
probeContentType
for more details. - If using Bean or Class component and specifying additional parameters in the endpoint uri to configure on the bean, then these options should now be prefixed with bean., eg
foo=123
is nowbean.foo=123
. - The Twitter delay option is changed from seconds to milli seconds by default, eg 10 should be 10000 to indicate 10 seconds. This is aligned how other components with delay option behaves.
- The hbase component now require row mapping from the endpoint uri to be prefixed with
row.
as prefix. - Before:
family=info&qualifier=firstName&family2=birthdate&qualifier2=year
. After:row.family=info&row.qualifier=firstName&row.family2=birthdate&row.qualifier2=year
. - As part of the Camel CDI component refactoring, DeltaSpike is not used anymore for the sourcing of the configuration properties. This new version of the component is agnostic to any configuration sourcing mechanism and delegates that concern to the application so that it can declare a custom PropertiesComponent bean whose sourcing is tailored to its need. DeltaSpike can still be used by the application by declaring a PropertiesComponent bean configured with a PropertiesParser relying on DeltaSpike. See the
camel-example-cdi-properties
example for more details.
Getting the Distributions
Binary Distributions
Description | Download Link | PGP Signature file of download |
---|---|---|
Windows Distribution | ||
Unix/Linux/Cygwin Distribution |
The above URLs use redirection
The above URLs use the Apache Mirror system to redirect you to a suitable mirror for your download. Some users have experienced issues with some versions of browsers (e.g. some Safari browsers). If the download doesn't seem to work for you from the above URL then try using FireFox
Source Distributions
Description | Download Link | PGP Signature file of download |
---|---|---|
Source for Windows |
Source for Unix/Linux/Cygwin |
Getting the Binaries using Maven 2
To use this release in your maven project, the proper dependency configuration that you should use in your Maven POM is:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>x.y.x</version> </dependency>
SVN Tag Checkout
svn co http://svn.apache.org/repos/asf/camel/tags/camel-x.y.x
Changelog
For a more detailed view of new features and bug fixes, see the: