Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Camel

...

1.4.0 release

release (TODO: Not release yet) {div:style=} !http://activemq.apache.org/camel/download.data/camel-box-v1.0-150x200.png! {div} {div:style=
Div
style
padding-right:20px;float:left;margin-left:-20px;

Image Added

Div
stylemin-height:200px
} h2.

New

and

Noteworthy

Welcome

to

the

1.4.0

release

which

includes TODO: 164 new

includes 261 new features,

improvements

and

bug

fixes

such

as...

*

  • major
  • improvements
  • in
[]
  • and
[]
  • components
*
  • major
  • improvements
  • in
[]
  • management
  • (enabled
  • by
default) * various improvements in [CXF], [File], [FTP], [Velocity], [Stream] components * various improvements in the Java and Spring DSL * refinements to run in OSGi containers * some internal refactorings of package structure to avoid cycle dependencies * @deprecated some core classes, that will be removed in Camel 2.0 * improved feedback for misconfiguration of camel routes such as mistypes of parameters * introduced [ExceptionPolicyStrategy|Dead Letter Channel] as strategy for exception clause selection during error handling (much improved default strategy in Camel) * overall improved wiki documentation * improved javadoc for camel-core * attachment support for [Message] * introduced [Debugger] interceptor to track message etc. h3. New [Components] * [Atom] for consuming atom feeds * [SpringIntegration] for integration with Spring Integration h3. New [Data Formats|Data Format] * [String] data format h3. New [Languages] * [Scala] (work in progress, not fully feature complete) h3. New [Enterprise Integration Patterns] * None h3. New Examples * ANT build files for running the examples * camel-example-loan-broker * camel-example-spring-jms h2. API breakings There can be a few API breakings when upgrading from Camel 1.3 or older. We are sorry for this and will try to refrain from such API breakings in the future Camel 1.x releases. An API overhaul is scheduled for Camel 2.0. h2. Known Issues CamelTemplate has been marked as @deprecated and you should use ProducerTemplate instead. From Camel 1.4.0 on the ProducerTemplate must be retrieved from the CamelContext. You can then use it the same way as before. {code}
  • default)
  • major improvements in Transactional Client. Bypassing Dead Letter Channel redelivery, letting the originator system handle this, resulting in the JMSMessage is rolled back to the JMS queue.
  • attachment support for Message
  • various improvements in CXF, File, FTP, Velocity, Stream, Atom and XMPP components
  • various improvements in the Java and Spring DSL
  • new transaction error handler, see Transactional Client
  • introduced ExceptionPolicyStrategy as strategy for exception clause selection during error handling (much improved default strategy in Camel)
  • intercept() default behavior changed (see section - important changes)
  • JMS headers now preserve packagename style headers so Bean and File headers is preserved, so you can safely send the filename or bean method to invoke over the JMS wire
  • introduced Debugger and Tracer interceptor to track how exchanges is routed
  • refinements to run in OSGi containers
  • some internal refactorings of package structure to avoid cycle dependencies
  • @deprecated some core classes, that will be removed in Camel 2.0
  • improved feedback for misconfiguration of camel routes such as mistypes of parameters
  • overall improved wiki documentation
  • improved javadoc for camel-core and camel-spring
  • dependencies is now on the finer grained jars if applicable (e.g. Spring)
  • WebSphere 6.1 support

New Enterprise Integration Patterns

  • None

New Components

  • Flatpack for processing fixed width or delimited files or messages using the FlatPack library (work in progress)
  • SpringIntegration for integration with Spring Integration

New DSL

  • Scala (work in progress, not fully feature complete)

New Data Formats

  • None

New Languages

  • None

New Examples

API breakings

Potentially there can be an API breaking when upgrading from Camel 1.3 or older. We are sorry for this and will try to refrain from such API breakings in the future Camel 1.x releases. An API overhaul is scheduled for Camel 2.0.

Known Issues

  • The Tracer and Log can cause a NPE if the Message Body is null. A workaround is to configure it with showBody=false.

Important changes to consider when upgrading

CamelTemplate marked as @deprecated

CamelTemplate has been marked as @deprecated and you should use ProducerTemplate instead.
From Camel 1.4.0 on the ProducerTemplate must be retrieved from the CamelContext. You can then use it the same way as before.

Code Block

ProducerTemplate camelTemplate = camelContext.createProducerTemplate();
{code} Bean component sets a reference to the bean that is being invoked as a property on the Exchange. This property has change its key from "CamelBean" to

After usage of the template, you must call stop() to let it release any resources obtained. See this FAQ entry.

Bean component minor change

Bean component sets a reference to the bean that is being invoked as a property on the Exchange. This property has change its key from "CamelBean" to "org.apache.camel.bean.BeanHolder"

and

the

type

is

now

a

BeanHolder. {div} h2. Getting the Distributions h3. Binary Distributions ||Description||Download Link||PGP Signature file of download |Windows Distribution| [apache-camel-1.4.0.zip|http://www.apache.org/dyn/closer.cgi/activemq/apache-camel/1.4.0/apache-camel-1.4.0.zip]| [apache-camel-1.4.0.zip.asc|http://www.apache.org/dist/activemq/apache-camel/1.4.0/apache-camel-1.4.0.zip.asc]| |Unix/Linux/Cygwin Distribution| [apache-camel-1.4.0.tar.gz|http://www.apache.org/dyn/closer.cgi/activemq/apache-camel/1.4.0/

BeanHolder.

Unit test kits

The unit test kits camel-core-tests.jar and camel-spring-tests.jar is no longer distributed with the binary distribution. These jars can be downloaded from maven repositories.

JMX

In Camel 1.4 the Camel JMX agent has been enabled by default. To disable it, as the default in previous versions, you have to explicitly disable it. See the Camel JMX documentation for details.

Default behavior of intercept() changed

In Camel 1.4 the DSL for intercept() has changed its default behavior to proceed by default.

In Camel 1.3 you had to do this:

Code Block

intercept().log("log:orders").proceed();
from("direct:order").to("seda:verifyOrder");
...

In Camel 1.4 the proceed is default:

Code Block

intercept().log("log:orders");
from("direct:order").to("seda:verifyOrder");
...

And in Camel 1.3 stop was default:

Code Block

intercept(header("user").isEqualTo("test")).log("log:test");
from("direct:order").to("seda:verifyOrder");
...

In Camel 1.4 you have to explicit state the stop:

Code Block

intercept(header("user").isEqualTo("test")).log("log:test").stop();
from("direct:order").to("seda:verifyOrder");
...

In the last two examples we want to filter out all orders by a test user. In Camel 1.4 we need to use the stop() to stop the intercept chain from proceeding.

URI validation

Camel is now more strict when it comes to validation of URI configuration. If a parameter name couldn't be resolved Camel will throw an Exception. In this regard the File component you must change the delay parameters to have the consumer. prefix. delay should be consumer.delay.

DeadLetterChannel

DeadLetterChannel is now disabled if in transacted mode. Use the new transaction error handler instread, see Transactional Client.

Getting the Distributions

Binary Distributions

Description

Download Link

PGP Signature file of download

Windows Distribution

apache-camel-1.4.0.

...

...

...

Unix/Linux/

...

Cygwin Distribution

apache-camel

...

...

Info
titleThe 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

]| {info:title=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|http://www.mozilla.com/en-US/firefox/] {info} h3. Source Distributions ||Description||Download Link||PGP Signature file of download |Source for Windows| [

FireFox

Source Distributions

Description

Download Link

PGP Signature file of download

Source for Windows

apache-camel-1.4.0-src.zip

...

...

...

...

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:

Code Block
xml
xml
0-src.tar.gz.asc|http://www.apache.org/dist/activemq/apache-camel/1.4.0/apache-camel-1.4.0-src.tar.gz.asc]|

h3. 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|http://maven.apache.org/guides/introduction/introduction-to-the-pom.html] is:

{code:xml}
<dependency>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-core</artifactId>
  <version>1.4.0</version>
</dependency>
{code}


h3

SVN Tag Checkout

Code Block
. SVN Tag Checkout

{code}
svn co httpshttp://svn.apache.org/repos/asf/activemq/camel/tags/camel-1.4.0
{code}

h2. Changelog
For a more detailed view of new features and bug fixes, see the [release notes|http://issues.apache.org/activemq/secure/ReleaseNote.jspa?projectId=11020&styleName=Html&version=11849]

{jiraissues:url=http://issues.apache.org/activemq/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?&pid=11020&fixfor=11849&sorter/field=issuekey&sorter/order=DESC&tempMax=1000}

Changelog

For a more detailed view of new features and bug fixes, see: