New and NoteworthyWelcome to the first milestone }
h2. New and Noteworthy
Welcome to the first milestone 2.0-M1 release of the new Apache Camel project, including 368 issues resolved (new features, improvements and bug fixes such as...)
* [ |Type Converter]
* []
* [|File2]
* [|FTP2] [|File2]
* [] [] [] [Mina]
* major refactor and improvements to [CXF] component. CxfBinding, HeaderFilterStrategy, Bus can be looked up from registry and configured at the endpoint level.
* [File|File2] and [FTP|FTP2] producers added option to write files using a temporary name and then rename it to the real name after the write completes
* [SFTP|FTP] added support for knownhosts and privatekey files
* [Mail] now supports setting additional SUN java mail properties
* [Mina] now supports setting text line delimiters for textline codec.
* [Mina] producer now throws CamelExchangeException in case no response received from remote server when in sync mode (sync=true)
* RedeliveryPolicy added support for ref attribute to reference a existing policy in the [Registry]
* [RedeliveryPolicy|Dead Letter Channel] added {{delayPattern}} option for using a special pattern for setting different delay based on intervals
* Added {{onWhen}} and {{retryUntil}} predicates to [Exception Clause]
* [List] component renamed to [Browse]
* [Exception Clause] is much smarter as it will use caused by exception hierarchy for matching as well (will use bottom ups)
* [Dead Letter Channel] and [Exception Clause] now have {{onRedeliver}} to allow custom processing an [Exchange] *before* its being redelivered. Allowing you to work on the message being sent.
* Added support for [\# syntax in Endpoint URI's|How do I configure endpoints] to allow endpoint URI's to refer to bean in the [Registry].
* {{consumer.}} prefix can be omitted for scheduled polling consumers such as [File|File2], [FTP|FTP2] consumers. Thus the URI options is more simpler and you don't have to remember which requires {{consumer.}} prefix and which doesn't.
* [Tracer] improved to allow custom routing and processing of TraceEventMessage so you can store trace logs as you like, for instance in a database.
* [Tracer] now also displays the previous node so you can see where the Exchange is coming from.
* [Quartz] has added support for stateful jobs.
* Introduced @FallbackConverter for using annotation based fallback type converters
* Extended [content enrichment|Content Enricher] support via the [enrich|Content Enricher#enrich-dsl] DSL element.
* [Simple] language now supports a basic set of operators.
* [Aggregator] now supports grouped exchanges out of the box, so you can combine all aggregated exchanges into a single grouped exchange going out.
* Multiple inputs can be define as input to routes: {{- Mina
- major refactor and improvements to CXF component. CxfBinding, HeaderFilterStrategy, Bus can be looked up from registry and configured at the endpoint level.
- File and FTP producers added option to write files using a temporary name and then rename it to the real name after the write completes
- SFTP added support for knownhosts and privatekey files
- Mail now supports setting additional SUN java mail properties
- Mina now supports setting text line delimiters for textline codec.
- Mina producer now throws CamelExchangeException in case no response received from remote server when in sync mode (sync=true)
- RedeliveryPolicy added support for ref attribute to reference a existing policy in the Registry
- RedeliveryPolicy added
delayPattern option for using a special pattern for setting different delay based on intervals - Added
onWhen and retryUntil predicates to Exception Clause - List component renamed to Browse
- Exception Clause is much smarter as it will use caused by exception hierarchy for matching as well (will use bottom ups)
- Dead Letter Channel and Exception Clause now have
onRedeliver to allow custom processing an Exchange before its being redelivered. Allowing you to work on the message being sent. - Added support for # syntax in Endpoint URI's to allow endpoint URI's to refer to bean in the Registry.
consumer. prefix can be omitted for scheduled polling consumers such as File, FTP consumers. Thus the URI options is more simpler and you don't have to remember which requires consumer. prefix and which doesn't.- Tracer improved to allow custom routing and processing of TraceEventMessage so you can store trace logs as you like, for instance in a database.
- Tracer now also displays the previous node so you can see where the Exchange is coming from.
- Quartz has added support for stateful jobs.
- Introduced @FallbackConverter for using annotation based fallback type converters
- Extended content enrichment support via the enrich DSL element.
- Simple language now supports a basic set of operators.
- Aggregator now supports grouped exchanges out of the box, so you can combine all aggregated exchanges into a single grouped exchange going out.
- Multiple inputs can be define as input to routes:
from("activemq:queue:order", "file://order").to("bean:handleOrder"); }}
*
*
*
*
* {{}}
* [ ]
*
* [ ]
* Added {{fromF}} and {{toF}} in the Java DSL to build uri strings using String.format with arguments, - Added
fromF and toF in the Java DSL to build uri strings using String.format with arguments, e.g.: {{fromF("ftp://%s@myserver?password%s", }}
* {{CamelContext}}
* Scala DSL is improved
* {{-
CamelContext - Scala DSL is improved
Message#getBody(Class }} {{}} {{ }}
* {{}} {{}}
h3. New [Enterprise Integration Patterns]
* [Sort]
h3. New [Components]
* [Cometd]
* [FreeMarker]
* [Restlet]
* [RSS]
* [Web Console] (experimental)
h3. New Annotations
* [@FallbackConverter|Type Converter]
h3. New [Data Formats|Data Format]
* [Bindy]
* [JSon]
* [TidyMarkup]
* [Zip|Zip DataFormat]
* [XMLSecurity|XMLSecurity DataFormat]
h3. New [Languages]
* [Mvel]
* [Property]
h3. New [Examples]
* [New Annotations|POJO Messaging Example]
* [|Tutorial-Example-ReportIncident]
* [tracer|Tracer Example] is a new example showing [Tracer] persisting trace events into a database using [JPA]
h2. API breakings
h3. Components
- The [List] component is renamed to [Browse] component
- The [Queue] component has been removed
- The [FTP|FTP2] component have renamed some of its URI options
- The [File|File2] component have renamed some of its URI options
- The [CXF] component have been refactored and APIs have been simplified.
h3. CXF producer
From Camel 1.6.0 the camel-cxf producer's serviceClass parameter should be Interface, before that you could specify the serviceClass as a Class or Interface.
h3. Changes to existing interfaces
* add getTypeConverterRegistry() to CamelContext
* change to use verb for EIP action
** ProcessorType splitter \-> split
×× ProcessorType resequencer \-> resequence
** ProcessorType aggregator \-> aggregate
** ProcessorType delayer \-> delay
** ProcessorType throttler \-> throttle
** ExceptionType delay \-> redeliveryDelay
* change the the JAXB annotations for spring schema
** AggregatorType @XmlRootElement(name = "aggregator") \-> @XmlRootElement(name = "aggregate")
** DelayerType @XmlRootElement(name = "delay") \-> @XmlRootElement(name = "delay")
** DelayerType @XmlElement private Long delay = 0L; \-> @XmlElement private Long delayTime = 0L;
** RedeliveryPolicyType @XmlAttribute private Long delay; \-> @XmlAttribute private Long redeliveryDelay;
** ResequencerType @XmlRootElement(name = "resequencer") \-> @XmlRootElement(name = "resequence")
** SplitterType @XmlRootElement(name = "splitter") \-> @XmlRootElement(name = "split")
** ThrottlerType @XmlRootElement(name = "throttler") \-> @XmlRootElement(name = "throttle")
* other spring DSL changes
** expression has been renamed to language as its used for language expressions and language is used in the Java DSL
** delayTime is now an attribute on delay
h3. Removal of deprecated items
* "initialRedeliveryDelay" in RedeliveryPolicy has been renamed to "delay". You will need to make this change in the Java/Spring DSL usage of the deadLetterChannel, redeliveryPolicy, transactionErrorHandler, and onException.
* CamelTemplate has been removed, use ProducerTemplate instead. It can be created using - tracer is a new example showing Tracer persisting trace events into a database using JPA
API breakingsComponents- The List component is renamed to Browse component
- The Queue component has been removed
- The FTP component have renamed some of its URI options
- The File component have renamed some of its URI options
- The CXF component have been refactored and APIs have been simplified.
CXF producerFrom Camel 1.6.0 the camel-cxf producer's serviceClass parameter should be Interface, before that you could specify the serviceClass as a Class or Interface. Changes to existing interfaces- add getTypeConverterRegistry() to CamelContext
- change to use verb for EIP action
- ProcessorType splitter -> split
×× ProcessorType resequencer -> resequence - ProcessorType aggregator -> aggregate
- ProcessorType delayer -> delay
- ProcessorType throttler -> throttle
- ExceptionType delay -> redeliveryDelay
- change the the JAXB annotations for spring schema
- AggregatorType @XmlRootElement(name = "aggregator") -> @XmlRootElement(name = "aggregate")
- DelayerType @XmlRootElement(name = "delay") -> @XmlRootElement(name = "delay")
- DelayerType @XmlElement private Long delay = 0L; -> @XmlElement private Long delayTime = 0L;
- RedeliveryPolicyType @XmlAttribute private Long delay; -> @XmlAttribute private Long redeliveryDelay;
- ResequencerType @XmlRootElement(name = "resequencer") -> @XmlRootElement(name = "resequence")
- SplitterType @XmlRootElement(name = "splitter") -> @XmlRootElement(name = "split")
- ThrottlerType @XmlRootElement(name = "throttler") -> @XmlRootElement(name = "throttle")
- other spring DSL changes
- expression has been renamed to language as its used for language expressions and language is used in the Java DSL
- delayTime is now an attribute on delay
Removal of deprecated items- "initialRedeliveryDelay" in RedeliveryPolicy has been renamed to "delay". You will need to make this change in the Java/Spring DSL usage of the deadLetterChannel, redeliveryPolicy, transactionErrorHandler, and onException.
- CamelTemplate has been removed, use ProducerTemplate instead. It can be created using org.apache.camel.CamelContext.createProducerTemplate().
*
*
*
* [ |http://camel.apache.org/tracer.html] instead.
*
*
*
*
*
*
*
* - InvalidHeaderTypeException
*
*
* - TransactionErrorHandlerBuilder,
*
* - setCamelContext(CamelContext)
* - HeaderPropagationStrategy
* - org.apache.camel.component.http.HttpProducer
*
* - shouldHeaderBePropagated()
- HeaderPropagationStrategy
*
* - DefaultHeaderFilterStrategy.get/setOutFilter
*
*
*
* - CxfSoapBinding.setProtocolHeader
- CxfHeaderHelper.propagateCxfToCamel
*
* - MessagePropertyAccessException,
- MessagePropertyNamesAccessException,
- MessageJMSPropertyAccessException
*
*
*
*
*
*
h3. Aggregator specification in Spring DSL changed
The aggregator expression is now enclosed in a correlationExpression element. You now need to specify an aggregator as:
{} |
---|
<aggregator>
<correlationExpression>
<simple>header.cheese</simple>
</correlationExpression>
<to uri="mock:result"/>
</aggregator>
| {code}
h2. Known Issues
See known issues from previous releases.
h2. Important changes to consider when upgrading
h3. JAXB data format
If you use XJC to create the java class from the schema, you will get a ObjectFactory for you JAXB context. Since the ObjectFactory uses JAXBElement to hold the reference of the schema and element instance value, from Camel 1.6.0 jaxbDataformat will ignore the JAXBElement by default and you will get the element instance value instead of the JAXBElement object form the unmarshaled message body.
If you want to get the JAXBElement object form the unmarshaled message body, you need to set the JaxbDataFormat object's ignoreJAXBElement property to be false.
{div}Known IssuesSee known issues from previous releases. Important changes to consider when upgradingIf you use XJC to create the java class from the schema, you will get a ObjectFactory for you JAXB context. Since the ObjectFactory uses JAXBElement to hold the reference of the schema and element instance value, from Camel 1.6.0 jaxbDataformat will ignore the JAXBElement by default and you will get the element instance value instead of the JAXBElement object form the unmarshaled message body. If you want to get the JAXBElement object form the unmarshaled message body, you need to set the JaxbDataFormat object's ignoreJAXBElement property to be false. |