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.
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().
exception() has been renamed to onException().
The beanShell method on ExpressionClause has been removed. Use language("beanshell", text) instead.
handleAll in try-catch has been renamed to finallyBlock
setOutBody() has been removed. Please use transform(Expression) instead.
setHeader(String name, String value) has been removed. Please use setHeader(String, Expression) instead.
convertOutBodyTo has been removed. Please use convertBodyTo(Class) instead.
The "methodName" parameter on a bean endpoint has been renamed to "method".
On the file endpoint excludedNamePrefixes and excludedNamePostfixes have been renamed to excludedNamePrefix and excludedNamePostfix.
The QueueCompoenent has been removed. Please use the seda: URI format instead of queue:
ListPollingConsumer has been removed.
InvalidHeaderTypeException has been removed. Use InvalidTypeException instead.
camelContext "useJmx" attribute has been removed. Please use the jmxAgent element instead.
CamelContext no longer has the following methods: addSingletonEndpoint, removeSingletonEndpoint, setRoutes
When using TransactionErrorHandlerBuilder, you must use DelayPolicy instead of RedeliveryPolicy.
The BeanInjector in camel-spring has been removed.
On Endpoint, getContext() and setContext(CamelContext) have been renamed to getCamelContext() and setCamelContext(CamelContext)
To set the ignored headers in the http component you must use the HeaderPropagationStrategy instead of setIgnoredHeaders(...)
JettyHttpProducer has been removed. Use org.apache.camel.component.http.HttpProducer instead.
In MailConfiguration, getDestination() and setDestination(...) have been renamed to getRecipients() and setTo(...).
shouldHeaderBePropagated() in HttpBinging has been removed in favour of using HeaderPropagationStrategy
In camel-ognl, RootObject class has changed getIn/Out to getRequest/Response
In JmsBinding, instead of get/setIgnoreJmsHeaders, use DefaultHeaderFilterStrategy.get/setOutFilter
In JmsProducer, getTemplate has been renamed to getInOnlyTemplate
get/setRequestTimeout on the JmsEndpoint has been removed. You will need to specify this in the JmsConfiguration.
In CxfSoapBinding, getCxfInMessage and getCxfOutMessage require a HeaderFilterStrategy as a parameter.
CxfSoapBinding.setProtocolHeader has been removed, please use CxfHeaderHelper.propagateCxfToCamel instead.
get/setContext() on the CxfSoapEndpoint has been renamed to get/setContext()
In camel-jms the RuntimeJmsException, MessagePropertyAccessException, MessagePropertyNamesAccessException, and MessageJMSPropertyAccessException have been removed. CamelRuntimeException will be thrown instead.
The beanShell method on ScriptBuilder has been removed. Use script("beanshell", text) instead.
In camel-stream usage of StreamMessage has been replaced by DefaultMessage
In StreamEndpoint, setFile has been removed. You should use the camel-file component instead.
In StreamEndpoint, setUrl has been removed. You should use the camel-http component instead.
serviceActivation has been removed
Deprecated APIs in CXF component have been removed, please use the simplified APIs.
Aggregator specification in Spring DSL changed
The aggregator expression is now enclosed in a correlationExpression element. You now need to specify an aggregator as:
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.5.1 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.
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