[CONF] Apache Camel Camel 2.6.0 Release
Camel 2.6.0 Release Page edited by Claus Ibsen Changes (1) ... * Added option {{deleteOutputFile}} to [XSLT] component. * [Idempotent Consumer]s {{IdempotentRepository}} is now managed in [JMX|Camel JMX]. * [File|File2] and [FTP|FTP2] producers now support writing _done_ files after the target file has been written, using the new {{doneFileName}} option. h3. New [Enterprise Integration Patterns] ... Full Content Camel 2.6.0 release (currently in progress) New and Noteworthy Welcome to the 2.6.0 release which approx XXX issues resolved (new features, improvements and bug fixes such as...) Fixed issue in OSGi with refreshing Camel bundles causing a race condition when discovering type converters Introduced ScheduledRoutePolicy with the Quartz component Java DSL RouteBuilder now fails if onException and the likes are not configured before routes, which they must. Easier to debug routes from camel-test using the Debugger Fixed problem installing camel-cxf feature on Apache Karaf. The EIP now supports property placeholders in the String based options (a few spots in Java DSL where its not possible). For example: convertBodyTo type="String" charset="{{foo.myCharset}}"/ Introduced ScheduledRoutePolicy to allow you to schedule when routes should be active. Introduced stepwise option to FTP component to allow end users to control how to traverse directories of the FTP servers. This allows you to set stepwise=false to return back to the behavior from Camel 2.0 - 2.4. See more at the FTP documentation. Added separator option to FTP component to allow end users to control what path separator to use when uploading files to remote FTP servers. For example if a Windows based FTP server only accept Windows paths, then you can set this option to Windows. Thread names now outputs CamelContext name which makes it easier to differentiate when running multiple Camel applications in the same JVM. Introduced contentCache option to XSLT component to allow easy reloading of stylesheets during development. Improved Camel JMX to always find next free name when registering in JMX and existing name exists (to remedy name clash). This makes it easier when deploying muliple WARs in the same JVM where the Camel applications may have same CamelContext id. In OSGi the name in JMX now has the bundle id as prefix. Fixed BeanShell language Quartz now supports using older versions (eg versions 1.6/1.7) of quartz JARs. The Aggregator EIP will use a synchronous invocation when processing completed aggregated Exchanges, when not running in parallel mode. This ensures no internal task queue is used, which otherwise could stack up tasks and under certain conditions eat up memory. Enable parallelProcessing if you want to use a separate thread for processing completed aggregated Exchanges. LDAP supports paging. CXF and CXFRS use the CXF continuation API when using CXF 2.3.x. Fixed a rare situation in which an Exchange could be lost during graceful shutdown on the SEDA endpoints, usually more apparent on high volume systems. Improved support for Locale in Bindy for Number and Date formats. Fixed Multicast, Splitter, Recipient List to work as the Pipes and Filters would do, breaking to continue routing if a sub exchange failed and was handled by an Exception Clause. Previously you would have to detect this manually in the AggregationStrategy. Constant fields from Exchange can be referred in the DSL from a String attribute using the class type style. This makes the Java DSL and Spring XML more similar. And you got type safe as Camel throws exception if you had a typo. For example: setHeader headerName="Exchange.FILE_NAME"constantmyfile.txt/constant/setHeader Exchange now contains the creation timestamp when it was created as a java.util.Date object stores as a property with the key Exchange.CREATION_TIMESTAMP Camel fails fast on startup if Load Balancer has been misconfigured, such as configuring two different load balancers in one Fixed markRollbackOnlyLast when used with inner/outer transactions. InterceptStrategy is now default ordered in the order they are added to the CamelContext. However you can dictate the order by implementing the org.apache.camel.util.Ordered interface. Made it easier to load routes from XML files using loadRoutesDefinition method from CamelContext. Added support for custom multipart filters in Jetty. Using Processor or Bean in routes is now also enlisted in JMX for management. The ObjectName for processor in JMX is now always using the node id it has been assigned in the route. Using a custom Processor or Bean will be enlisted in JMX having its custom attributes/operations listed. For example just use the Spring JMX annotations to
svn commit: r1050324 - /camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java
Author: davsclaus Date: Fri Dec 17 09:15:13 2010 New Revision: 1050324 URL: http://svn.apache.org/viewvc?rev=1050324view=rev Log: Fixed test due recent commit by joel Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java?rev=1050324r1=1050323r2=1050324view=diff == --- camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java (original) +++ camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java Fri Dec 17 09:15:13 2010 @@ -51,7 +51,7 @@ public class StartingRoutesErrorReported context.start(); fail(); } catch (FailedToCreateRouteException e) { -assertTrue(e.getMessage().startsWith(Failed to create route route2 at: To[mock:result?foo=bar] in route: Route[[From[direct:start]] - [To[mock:result?foo=bar]]] because of)); +assertTrue(e.getMessage(), e.getMessage().startsWith(Failed to create route route2 at: To[mock:result?foo=bar] in route: Route[[From[direct://start]] - [To[mock:result?foo=bar]]] because of)); } } @@ -67,7 +67,7 @@ public class StartingRoutesErrorReported }); context.start(); } catch (FailedToCreateRouteException e) { -assertTrue(e.getMessage().startsWith(Failed to create route route3 at: Bean[ref:] in route: Route[[From[direct:start]] - [To[mock:foo], Bean[ref:]]] because of)); +assertTrue(e.getMessage(), e.getMessage().startsWith(Failed to create route route3 at: Bean[ref:] in route: Route[[From[direct://start]] - [To[mock:foo], Bean[ref:]]] because of)); } }
svn commit: r1050325 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/language/simple/SimpleLanguage.java test/java/org/apache/camel/language/FileLanguageTest.java
Author: davsclaus Date: Fri Dec 17 09:20:27 2010 New Revision: 1050325 URL: http://svn.apache.org/viewvc?rev=1050325view=rev Log: File language should throw invalid expression if could not resolve, for example misspelt syntax Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/language/simple/SimpleLanguage.java camel/trunk/camel-core/src/test/java/org/apache/camel/language/FileLanguageTest.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/language/simple/SimpleLanguage.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/language/simple/SimpleLanguage.java?rev=1050325r1=1050324r2=1050325view=diff == --- camel/trunk/camel-core/src/main/java/org/apache/camel/language/simple/SimpleLanguage.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/language/simple/SimpleLanguage.java Fri Dec 17 09:20:27 2010 @@ -311,7 +311,7 @@ public class SimpleLanguage extends Simp } } -public Expression createSimpleFileExpression(String remainder) { +protected Expression createSimpleFileExpression(String remainder) { if (ObjectHelper.equal(remainder, name)) { return ExpressionBuilder.fileNameExpression(); } else if (ObjectHelper.equal(remainder, name.noext)) { @@ -337,7 +337,7 @@ public class SimpleLanguage extends Simp } else if (ObjectHelper.equal(remainder, modified)) { return ExpressionBuilder.fileLastModifiedExpression(); } -return null; +throw new ExpressionIllegalSyntaxException(File language syntax: + remainder); } public boolean isSingleton() { Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/language/FileLanguageTest.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/language/FileLanguageTest.java?rev=1050325r1=1050324r2=1050325view=diff == --- camel/trunk/camel-core/src/test/java/org/apache/camel/language/FileLanguageTest.java (original) +++ camel/trunk/camel-core/src/test/java/org/apache/camel/language/FileLanguageTest.java Fri Dec 17 09:20:27 2010 @@ -59,6 +59,16 @@ public class FileLanguageTest extends La assertExpression(${id}.bak, exchange.getIn().getMessageId() + .bak); } +public void testInvalidSyntax() throws Exception { +assertExpression(${file:onlyname}, file.getName()); +try { +assertExpression(${file:onlyName}, file.getName()); +fail(Should have thrown exception); +} catch (ExpressionIllegalSyntaxException e) { +assertEquals(Illegal syntax: File language syntax: onlyName, e.getMessage()); +} +} + public void testFile() throws Exception { assertExpression(${file:ext}, txt); assertExpression(${file:name.ext}, txt);
svn commit: r1050327 - in /camel/trunk: camel-core/src/main/java/org/apache/camel/component/file/ camel-core/src/test/java/org/apache/camel/component/file/ camel-core/src/test/java/org/apache/camel/mo
Author: davsclaus Date: Fri Dec 17 09:34:32 2010 New Revision: 1050327 URL: http://svn.apache.org/viewvc?rev=1050327view=rev Log: CAMEL-3369: Added writing done file to file/ftp producer. Added: camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FilerProducerDoneFileNameTest.java - copied, changed from r1050275, camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FilerProducerFileNamesTest.java camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpProducerDoneFileNameTest.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java?rev=1050327r1=1050326r2=1050327view=diff == --- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java Fri Dec 17 09:34:32 2010 @@ -86,6 +86,7 @@ public abstract class GenericFileEndpoin protected long readLockTimeout = 1; protected GenericFileExclusiveReadLockStrategyT exclusiveReadLockStrategy; protected boolean keepLastModified; +protected String doneFileName; public GenericFileEndpoint() { } @@ -278,6 +279,19 @@ public abstract class GenericFileEndpoin this.fileName = createFileLanguageExpression(fileLanguageExpression); } +public String getDoneFileName() { +return doneFileName; +} + +/** + * Sets the done file name. + * p/ + * Only ${file.name} and ${file.name.noext} is supported as dynamic placeholders. + */ +public void setDoneFileName(String doneFileName) { +this.doneFileName = doneFileName; +} + public Boolean isIdempotent() { return idempotent != null ? idempotent : false; } Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java?rev=1050327r1=1050326r2=1050327view=diff == --- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileProducer.java Fri Dec 17 09:34:32 2010 @@ -17,16 +17,16 @@ package org.apache.camel.component.file; import java.io.File; -import java.io.InputStream; import org.apache.camel.Exchange; import org.apache.camel.Expression; +import org.apache.camel.ExpressionIllegalSyntaxException; +import org.apache.camel.impl.DefaultExchange; import org.apache.camel.impl.DefaultProducer; import org.apache.camel.language.simple.SimpleLanguage; import org.apache.camel.spi.Language; import org.apache.camel.util.ExchangeHelper; import org.apache.camel.util.FileUtil; -import org.apache.camel.util.IOHelper; import org.apache.camel.util.ObjectHelper; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -164,6 +164,27 @@ public class GenericFileProducerT exte } } +// any done file to write? +if (endpoint.getDoneFileName() != null) { +String doneFileName = createDoneName(target); +ObjectHelper.notEmpty(doneFileName, doneFileName, endpoint); + +// create empty exchange with empty body to write as the done file +Exchange empty = new DefaultExchange(exchange); +empty.getIn().setBody(); + +if (log.isTraceEnabled()) { +log.trace(Writing done file: [ + doneFileName + ]); +} +// delete any existing done file +if (operations.existsFile(doneFileName)) { +if (!operations.deleteFile(doneFileName)) { +throw new GenericFileOperationFailedException(Cannot delete existing done file: + doneFileName); +} +} +writeFile(empty, doneFileName); +} + // lets store the name we really used in the header, so end-users // can retrieve it exchange.getIn().setHeader(Exchange.FILE_NAME_PRODUCED, target); @@ -314,4 +335,28 @@ public class GenericFileProducerT exte } } +
svn commit: r1050422 - /camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java
Author: gnodet Date: Fri Dec 17 15:26:01 2010 New Revision: 1050422 URL: http://svn.apache.org/viewvc?rev=1050422view=rev Log: [CAMEL-3425] CamelContext is started twice when using camel-blueprint Modified: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java Modified: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java?rev=1050422r1=1050421r2=1050422view=diff == --- camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java (original) +++ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java Fri Dec 17 15:26:01 2010 @@ -23,6 +23,7 @@ import java.util.Dictionary; import java.util.Enumeration; import org.apache.camel.itest.osgi.OSGiIntegrationTestSupport; +import org.junit.Before; import org.ops4j.pax.exam.CoreOptions; import org.ops4j.pax.exam.Inject; import org.ops4j.pax.exam.options.MavenArtifactProvisionOption; @@ -42,6 +43,13 @@ public abstract class AbstractIntegratio @Inject protected BundleContext bundleContext; +@Before +public void setUp() throws Exception { + log.info(); +log.info(Testing: + getTestMethodName() + ( + getClass().getName() + )); + log.info(); +} + protected T T getOsgiService(ClassT type, long timeout) { return getOsgiService(type, null, timeout); }
svn commit: r1050438 - /camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java
Author: davsclaus Date: Fri Dec 17 16:11:56 2010 New Revision: 1050438 URL: http://svn.apache.org/viewvc?rev=1050438view=rev Log: XML should auto lookup custom ManagementNamingStrategy Modified: camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java Modified: camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java?rev=1050438r1=1050437r2=1050438view=diff == --- camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java (original) +++ camel/trunk/components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java Fri Dec 17 16:11:56 2010 @@ -72,6 +72,7 @@ import org.apache.camel.spi.FactoryFinde import org.apache.camel.spi.InflightRepository; import org.apache.camel.spi.InterceptStrategy; import org.apache.camel.spi.LifecycleStrategy; +import org.apache.camel.spi.ManagementNamingStrategy; import org.apache.camel.spi.ManagementStrategy; import org.apache.camel.spi.PackageScanClassResolver; import org.apache.camel.spi.PackageScanFilter; @@ -211,6 +212,11 @@ public abstract class AbstractCamelConte LOG.info(Using custom ManagementStrategy: + managementStrategy); getContext().setManagementStrategy(managementStrategy); } +ManagementNamingStrategy managementNamingStrategy = getBeanForType(ManagementNamingStrategy.class); +if (managementNamingStrategy != null) { +LOG.info(Using custom ManagementNamingStrategy: + managementNamingStrategy); + getContext().getManagementStrategy().setManagementNamingStrategy(managementNamingStrategy); +} EventFactory eventFactory = getBeanForType(EventFactory.class); if (eventFactory != null) { LOG.info(Using custom EventFactory: + eventFactory);
[CONF] Apache Camel FTP2
FTP2 Page edited by Claus Ibsen Changes (1) ... {div:class=confluenceTableSmall} || Name || Default Value || Description || | {{username}} | {{null}} | Specifies the username to use to log in to the remote file systen. | | {{password}} | {{null}} | Specifies the password to use to log in to the remote file system. | | {{binary}} | {{false}} | Specifies the file transfer mode, BINARY or ASCII. Default is ASCII ({{false}}). | ... Full Content FTP/SFTP/FTPS Component - Camel 2.0 onwards This component provides access to remote file systems over the FTP and SFTP protocols. Maven users will need to add the following dependency to their pom.xml for this component: dependency groupIdorg.apache.camel/groupId artifactIdcamel-ftp/artifactId versionx.x.x/version !-- use the same version as your Camel core version -- /dependency Using Camel 1.xIf you are using Camel 1.x then see this link for documentation. This page is only for Camel 2.0 or newer. Using FTPSThe FTPS component is only available in Camel 2.2 or newer. FTPS (also known as FTP Secure) is an extension to FTP that adds support for the Transport Layer Security (TLS) and the Secure Sockets Layer (SSL) cryptographic protocols. Libraries usedThis component uses two different libraries for the actual FTP work. FTP and FTPS uses Apache Commons Net while SFTP uses JCraft JSCH. URI format ftp://[usern...@]hostname[:port]/directoryname[?options] sftp://[usern...@]hostname[:port]/directoryname[?options] ftps://[usern...@]hostname[:port]/directoryname[?options] Where directoryname represents the underlying directory. Can contain nested folders. If no username is provided, then anonymous login is attempted using no password. If no port number is provided, Camel will provide default values according to the protocol (ftp = 21, sftp = 22, ftps = ). You can append query options to the URI in the following format, ?option=valueoption=value... URI Options The options below are exclusive for the FTP2 component. Name Default Value Description username null Specifies the username to use to log in to the remote file systen. password null Specifies the password to use to log in to the remote file system. binary false Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false). disconnect false Camel 2.2: Whether or not to disconnect from remote FTP server right after use. Can be used for both consumer and producer. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop the consumer/route instead. localWorkDirectory null When consuming, a local work directory can be used to store the remote file content directly in local files, to avoid loading the content into memory. This is beneficial, if you consume a very big remote file and thus can conserve memory. See below for more details. passiveMode false FTP and FTPS only: Specifies whether to use passive mode connections. Default is active mode (false). securityProtocol TLS FTPS only: Sets the underlying security protocol. The following values are defined: TLS: Transport Layer Security SSL: Secure Sockets Layer disableSecureDataChannelDefaults false Camel 2.4: FTPS only: Whether or not to disable using default values for execPbsz and execProt when using secure data transfer. You can set this option to true if you want to be in absolute full control what the options execPbsz and execProt should be used. execProt null Camel 2.4: FTPS only: Will by default use option P if secure data channel defaults hasn't been disabled. Possible values are: C: Clear S: Safe (SSL protocol only) E: Confidential (SSL protocol only) P: Private execPbsz null Camel 2.4: FTPS only: This option specifies the buffer size of the secure data channel. If option useSecureDataChannel has been enabled and this option has not been explicit set, then value 0 is used. isImplicit false FTPS only: Sets the security mode(implicit/explicit). Default is explicit (false). knownHostsFile null SFTP only: Sets the known_hosts file, so that the SFTP endpoint can do host key verification. privateKeyFile null SFTP only: Set the private key file to that the SFTP endpoint can do private key verification. privateKeyFilePassphrase null SFTP only: Set the private key file passphrase to that the SFTP endpoint can do private key verification. strictHostKeyChecking no SFTP only: Camel 2.2: Sets whether to use strict host key checking. Possible values are: no, yes and ask. ask does not make sense to use as Camel cannot answer the question for you as its meant for human
svn commit: r1050459 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/model/FromDefinition.java test/java/org/apache/camel/impl/FromEndpointRouteDefinitionTest.java test/java/org/apache/ca
Author: davsclaus Date: Fri Dec 17 17:56:53 2010 New Revision: 1050459 URL: http://svn.apache.org/viewvc?rev=1050459view=rev Log: Reverted commit revs 1050112 and 1050324 because it was really not good. The model must be stateless as it can be used as skeleton for multiple real routes being built Removed: camel/trunk/camel-core/src/test/java/org/apache/camel/impl/FromEndpointRouteDefinitionTest.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromDefinition.java camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromDefinition.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromDefinition.java?rev=1050459r1=1050458r2=1050459view=diff == --- camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromDefinition.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/FromDefinition.java Fri Dec 17 17:56:53 2010 @@ -70,9 +70,11 @@ public class FromDefinition extends Opti public Endpoint resolveEndpoint(RouteContext context) { if (endpoint == null) { -endpoint = context.resolveEndpoint(getUri(), getRef()); +return context.resolveEndpoint(getUri(), getRef()); +} else { +return endpoint; } -return endpoint; + } // Properties Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java?rev=1050459r1=1050458r2=1050459view=diff == --- camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java (original) +++ camel/trunk/camel-core/src/test/java/org/apache/camel/model/StartingRoutesErrorReportedTest.java Fri Dec 17 17:56:53 2010 @@ -36,7 +36,7 @@ public class StartingRoutesErrorReported context.start(); fail(); } catch (FailedToCreateRouteException e) { -assertTrue(e.getMessage().startsWith(Failed to create route route1: Route[[From[direct:start?foo=bar]])); +assertTrue(e.getMessage().startsWith(Failed to create route route1: Route[[From[direct:start?foo=bar]] - [To[mock:result]]] because of)); } } @@ -51,7 +51,7 @@ public class StartingRoutesErrorReported context.start(); fail(); } catch (FailedToCreateRouteException e) { -assertTrue(e.getMessage(), e.getMessage().startsWith(Failed to create route route2 at: To[mock:result?foo=bar])); +assertTrue(e.getMessage().startsWith(Failed to create route route2 at: To[mock:result?foo=bar] in route: Route[[From[direct:start]] - [To[mock:result?foo=bar]]] because of)); } } @@ -67,7 +67,7 @@ public class StartingRoutesErrorReported }); context.start(); } catch (FailedToCreateRouteException e) { -assertTrue(e.getMessage(), e.getMessage().startsWith(Failed to create route route3 at: Bean[ref:] in route: Route[[From[direct://start]] - [To[mock:foo], Bean[ref:]]] because of)); +assertTrue(e.getMessage().startsWith(Failed to create route route3 at: Bean[ref:] in route: Route[[From[direct:start]] - [To[mock:foo], Bean[ref:]]] because of)); } }
[CONF] Apache Camel Camel x.y.z Release (template)
Camel x.y.z Release (template) Page added by Hadrian Zbarcea Camel x.y.z 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...) highlighted issue fixed highlighted issue fixed New Enterprise Integration Patterns New Components New DSL New Annotations New Data Formats New Languages New Examples New Tutorials API breaking Known Issues Important changes to consider when upgrading Getting the Distributions Binary Distributions Description Download Link PGP Signature file of download Windows Distribution apache-camel-x.y.x.zip apache-camel-x.y.x.zip.asc Unix/Linux/Cygwin Distribution apache-camel-x.y.x.tar.gz apache-camel-x.y.x.tar.gz.asc The above URLs use redirectionThe 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 apache-camel-x.y.x-src.zip apache-camel-x.y.x-src.zip.asc Source for Unix/Linux/Cygwin apache-camel-x.y.x-src.tar.gz apache-camel-x.y.x-src.tar.gz.asc 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 groupIdorg.apache.camel/groupId artifactIdcamel-core/artifactId versionx.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: release notes for x.y.x Change Notification Preferences View Online | Add Comment
[CONF] Apache Camel Camel 1.6.4 Release
Camel 1.6.4 Release Page edited by Hadrian Zbarcea Changes (0) ... Full Content Camel 1.6.4 release (currently in progress) New and Noteworthy Welcome to the 1.6.4 release which approx XXX issues resolved (new features, improvements and bug fixes such as...) highlighted issue fixed highlighted issue fixed New Enterprise Integration Patterns New Components New DSL New Annotations New Data Formats New Languages New Examples New Tutorials API breaking Known Issues Important changes to consider when upgrading Getting the Distributions Binary Distributions Description Download Link PGP Signature file of download Windows Distribution apache-camel-1.6.4.zip apache-camel-1.6.4.zip.asc Unix/Linux/Cygwin Distribution apache-camel-1.6.4.tar.gz apache-camel-1.6.4.tar.gz.asc The above URLs use redirectionThe 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 apache-camel-1.6.4-src.zip apache-camel-1.6.4-src.zip.asc Source for Unix/Linux/Cygwin apache-camel-1.6.4-src.tar.gz apache-camel-1.6.4-src.tar.gz.asc 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 groupIdorg.apache.camel/groupId artifactIdcamel-core/artifactId version1.6.4/version /dependency SVN Tag Checkout svn co http://svn.apache.org/repos/asf/camel/tags/camel-1.6.4 Changelog For a more detailed view of new features and bug fixes, see the: release notes for 1.6.4 Change Notification Preferences View Online | View Changes | Add Comment
[CONF] Apache Camel Copy of Camel x.y.z Release (template)
Copy of Camel x.y.z Release (template) Page added by Hadrian Zbarcea Camel 1.6.4 release (currently in progress) New and Noteworthy Welcome to the 1.6.4 release which approx XXX issues resolved (new features, improvements and bug fixes such as...) highlighted issue fixed highlighted issue fixed New Enterprise Integration Patterns New Components New DSL New Annotations New Data Formats New Languages New Examples New Tutorials API breaking Known Issues Important changes to consider when upgrading Getting the Distributions Binary Distributions Description Download Link PGP Signature file of download Windows Distribution apache-camel-1.6.4.zip apache-camel-1.6.4.zip.asc Unix/Linux/Cygwin Distribution apache-camel-1.6.4.tar.gz apache-camel-1.6.4.tar.gz.asc The above URLs use redirectionThe 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 apache-camel-1.6.4-src.zip apache-camel-1.6.4-src.zip.asc Source for Unix/Linux/Cygwin apache-camel-1.6.4-src.tar.gz apache-camel-1.6.4-src.tar.gz.asc 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 groupIdorg.apache.camel/groupId artifactIdcamel-core/artifactId version1.6.4/version /dependency SVN Tag Checkout svn co http://svn.apache.org/repos/asf/camel/tags/camel-1.6.4 Changelog For a more detailed view of new features and bug fixes, see the: release notes for 1.6.4 Change Notification Preferences View Online | Add Comment
[CONF] Apache Camel Camel 1.6.4 Release
Camel 1.6.4 Release Page edited by Hadrian Zbarcea Changes (5) h1. Camel 1.6.4 release (currently in progress) {div:style=padding-right:20px;float:left;margin-left:-20px;} ... h2. New and Noteworthy Welcome to the 1.6.4 release which approx XXX issues resolved (new features, improvements and bug fixes such as...) Welcome to the 1.6.4 release that includes 7 issues resolved. This is the last release of the camel-1.x branch. * highlighted issue fixed * highlighted issue fixed * Message content redelivered asynchronously by DLC is now rereadable * Aggregator - Exception thrown from custom aggregation strategy could cause BatchSender thread to terminate * Updated constants in the Documentation for HTTP Component * Merged the http chuncked option support from trunk to camel 1.x branch * Added META-INF to [SQL] to make it discoverable by camel-core * Upgrade to velocity 1.6.4 * Upgrade cxf version of camel-cxf to 2.2.9 h3. New [Enterprise Integration Patterns] ... Full Content Camel 1.6.4 release New and Noteworthy Welcome to the 1.6.4 release that includes 7 issues resolved. This is the last release of the camel-1.x branch. Message content redelivered asynchronously by DLC is now rereadable Aggregator - Exception thrown from custom aggregation strategy could cause BatchSender thread to terminate Updated constants in the Documentation for HTTP Component Merged the http chuncked option support from trunk to camel 1.x branch Added META-INF to SQL to make it discoverable by camel-core Upgrade to velocity 1.6.4 Upgrade cxf version of camel-cxf to 2.2.9 New Enterprise Integration Patterns New Components New DSL New Annotations New Data Formats New Languages New Examples New Tutorials API breaking Known Issues Important changes to consider when upgrading Getting the Distributions Binary Distributions Description Download Link PGP Signature file of download Windows Distribution apache-camel-1.6.4.zip apache-camel-1.6.4.zip.asc Unix/Linux/Cygwin Distribution apache-camel-1.6.4.tar.gz apache-camel-1.6.4.tar.gz.asc The above URLs use redirectionThe 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 apache-camel-1.6.4-src.zip apache-camel-1.6.4-src.zip.asc Source for Unix/Linux/Cygwin apache-camel-1.6.4-src.tar.gz apache-camel-1.6.4-src.tar.gz.asc 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 groupIdorg.apache.camel/groupId artifactIdcamel-core/artifactId version1.6.4/version /dependency SVN Tag Checkout svn co http://svn.apache.org/repos/asf/camel/tags/camel-1.6.4 Changelog For a more detailed view of new features and bug fixes, see the: release notes for 1.6.4 Change Notification Preferences View Online | View Changes | Add Comment
[CONF] Apache Camel Camel 1.6.4 Release
Camel 1.6.4 Release Page moved by Hadrian Zbarcea From: Apache Camel In Progress To: Apache Camel Download Children moved Change Notification Preferences View Online | Add Comment
[CONF] Apache Camel Download
Download Page edited by Hadrian Zbarcea Changes (7) ... * The latest release for Camel 2.x is [Camel 2.5.0 Release]. * The latest release for Camel 1.x is [Camel 1.6.34 Release]. {div} ... |Windows Distribution| [apache-camel-2.5.0.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0.zip]| [apache-camel-2.5.0.zip.asc|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0.zip.asc]| |Unix/Linux/Cygwin Distribution| [apache-camel-2.5.0.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0.tar.gz]| [apache-camel-2.5.0.tar.gz.asc|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0.tar.gz.asc]| |Windows Distribution (1.x branch)| [apache-camel-1.6.3.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.3/apache-camel-1.6.3.zip]| [apache-camel-1.6.3.zip.asc|http://www.apache.org/dist/camel/apache-camel/1.6.3/apache-camel-1.6.3.zip.asc]| |Unix/Linux/Cygwin Distribution (1.x branch)| [apache-camel-1.6.3.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.3/apache-camel-1.6.3.tar.gz]| [apache-camel-1.6.3.tar.gz.asc|http://www.apache.org/dist/camel/apache-camel/1.6.3/apache-camel-1.6.3.tar.gz.asc]| |Windows Distribution (1.x branch)| [apache-camel-1.6.4.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.4/apache-camel-1.6.4.zip]| [apache-camel-1.6.4.zip.asc|http://www.apache.org/dist/camel/apache-camel/1.6.4/apache-camel-1.6.4.zip.asc]| |Unix/Linux/Cygwin Distribution (1.x branch)| [apache-camel-1.6.4.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.4/apache-camel-1.6.4.tar.gz]| [apache-camel-1.6.4.tar.gz.asc|http://www.apache.org/dist/camel/apache-camel/1.6.4/apache-camel-1.6.4.tar.gz.asc]| h3. Source Distribution ... |Source for Windows| [apache-camel-2.5.0-src.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0-src.zip]| [apache-camel-2.5.0-src.zip.asc|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0-src.zip.asc]| |Source for Unix/Linux/Cygwin| [apache-camel-2.5.0-src.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0-src.tar.gz]| [apache-camel-2.5.0-src.tar.gz.asc|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/2.5.0/apache-camel-2.5.0-src.tar.gz.asc]| |Source for Windows (1.x branch)| [apache-camel-1.6.3-src.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.3/apache-camel-1.6.3-src.zip]| [apache-camel-1.6.3-src.zip.asc|http://www.apache.org/dist/camel/apache-camel/1.6.3/apache-camel-1.6.3-src.zip.asc]| |Source for Unix/Linux/Cygwin (1.x branch)| [apache-camel-1.6.3-src.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.3/apache-camel-1.6.3-src.tar.gz]| [apache-camel-1.6.3-src.tar.gz.asc|http://www.apache.org/dist/camel/apache-camel/1.6.3/apache-camel-1.6.3-src.tar.gz.asc]| |Source for Windows (1.x branch)| [apache-camel-1.6.4-src.zip|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.4/apache-camel-1.6.4-src.zip]| [apache-camel-1.6.4-src.zip.asc|http://www.apache.org/dist/camel/apache-camel/1.6.4/apache-camel-1.6.4-src.zip.asc]| |Source for Unix/Linux/Cygwin (1.x branch)| [apache-camel-1.6.4-src.tar.gz|http://www.apache.org/dyn/closer.cgi/camel/apache-camel/1.6.4/apache-camel-1.6.4-src.tar.gz]| [apache-camel-1.6.4-src.tar.gz.asc|http://www.apache.org/dist/camel/apache-camel/1.6.4/apache-camel-1.6.4-src.tar.gz.asc]| h3. Keys ... || Version || | [Download Apache Camel 1.6.4-SNAPSHOT|https://repository.apache.org/content/repositories/snapshots/org/apache/camel/apache-camel/1.6.4-SNAPSHOT/] | | [Download Apache Camel 2.6-SNAPSHOT|https://repository.apache.org/content/repositories/snapshots/org/apache/camel/apache-camel/2.6-SNAPSHOT/] | {info} The camel-1.x branch is no longer maintain therefore snapshots for that branch are not available. {info} h2. Maven 2 Repositories ... Full Content Latest Releases Grab these releases while they are hot! The latest release for Camel 2.x is Camel 2.5.0 Release. The latest release for Camel 1.x is Camel 1.6.4 Release. Getting the latest distributions The URLs below use redirectionThe 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 Mozilla Firefox Binary Distribution
[CONF] Apache Camel Xml Reference
Xml Reference Page edited by Hadrian Zbarcea Changes (1) ... | 2.0-M2 | http://camel.apache.org/schema/spring/camel-spring-2.0-M2.xsd | | 2.0-M1 | http://camel.apache.org/schema/spring/camel-spring-2.0-M1.xsd | | 1.6.4 | http://camel.apache.org/schema/spring/camel-spring-1.6.4.xsd | | 1.6.3 | http://camel.apache.org/schema/spring/camel-spring-1.6.3.xsd | | 1.6.2 | http://camel.apache.org/schema/spring/camel-spring-1.6.2.xsd | ... Full Content Camel Xml Reference This page contains a link to the XML reference guides and XML schema documents for Xml Configuration with Camel releases. You can refer to http://camel.apache.org/schema/spring/ to see the individual XSDs available. Released Schemas Version XML Schema 2.5.0 http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd 2.4.0 http://camel.apache.org/schema/spring/camel-spring-2.4.0.xsd 2.3.0 http://camel.apache.org/schema/spring/camel-spring-2.3.0.xsd 2.2.0 http://camel.apache.org/schema/spring/camel-spring-2.2.0.xsd 2.1.0 http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd 2.0.0 http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd 2.0-M3 http://camel.apache.org/schema/spring/camel-spring-2.0-M3.xsd 2.0-M2 http://camel.apache.org/schema/spring/camel-spring-2.0-M2.xsd 2.0-M1 http://camel.apache.org/schema/spring/camel-spring-2.0-M1.xsd 1.6.4 http://camel.apache.org/schema/spring/camel-spring-1.6.4.xsd 1.6.3 http://camel.apache.org/schema/spring/camel-spring-1.6.3.xsd 1.6.2 http://camel.apache.org/schema/spring/camel-spring-1.6.2.xsd 1.6.1 http://camel.apache.org/schema/spring/camel-spring-1.6.1.xsd 1.6.0 http://camel.apache.org/schema/spring/camel-spring-1.6.0.xsd 1.5.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.5.0.xsd 1.4.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.4.0.xsd 1.3.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd 1.2.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.2.0.xsd 1.1.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.1.0.xsd 1.0.0 http://activemq.apache.org/camel/schema/spring/camel-spring-1.0.0.xsd Using the XSDs in configuration files When you are using Spring's 2.5 XML handling to parse the XML then you need to refer to the XSD locations in your XML document. You can refer to a specific version of the XSD in your XML as follows beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.5.0.xsd" or if you prefer you can use a generic XSD without the version number beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd" Your IDE won't be able to fetch this XSD, you'll have to manually associate a specific release; however it does mean that you won't have to upgrade your XML config file with each Camel release; as it will resolve this XSD using the bundled XSD inside the camel-spring.jar. Change Notification Preferences View Online | View Changes | Add Comment
[CONF] Apache Camel Manual
Manual Page edited by Hadrian Zbarcea Changes (1) ... | [Camel Manual 2.0-M2|http://camel.apache.org/manual/camel-manual-2.0-M2.pdf] (pdf) | | [Camel Manual 2.0-M1|http://camel.apache.org/manual/camel-manual-2.0-M1.pdf] (pdf) | | [Camel Manual 1.6.4|http://camel.apache.org/manual/camel-manual-1.6.4.pdf] (pdf) | | [Camel Manual 1.6.3|http://camel.apache.org/manual/camel-manual-1.6.3.pdf] (pdf) | | [Camel Manual 1.6.1|http://camel.apache.org/manual/camel-manual-1.6.1.pdf] (pdf) | ... Full Content Camel Manual There are a number of PDFs of the Camel Manual which is made up of lots of the Documentation available here http://camel.apache.org/manual You can download a specific version here Manual Versions Camel Manual 2.5.0 (pdf) Camel Manual 2.4.0 (pdf) Camel Manual 2.3.0 (pdf) Camel Manual 2.2.0 (pdf) Camel Manual 2.0.0 (pdf) Camel Manual 2.0-M3 (pdf) Camel Manual 2.0-M2 (pdf) Camel Manual 2.0-M1 (pdf) Camel Manual 1.6.4 (pdf) Camel Manual 1.6.3 (pdf) Camel Manual 1.6.1 (pdf) Camel Manual 1.6.0 (pdf) Camel Manual 1.5.0 (pdf) Camel Manual 1.4.0 (pdf) Camel Manual 1.3.0 (pdf) Camel Manual 1.2.0 (pdf) Alternatively you can browse the Documentation on the web. Change Notification Preferences View Online | View Changes | Add Comment
[CONF] Apache Camel Camel 1.6.4 Released
Camel 1.6.4 Released Blog post added by Hadrian Zbarcea The Apache Camel project issued this week a new patch release camel-1.6.4. We are extremely grateful to the community for the continued support and the contributions. Development on the camel-1.x branch slowed down this year. The 1.6.4 release includes 7 issues resolved (see below). As previously announced this is the last release of the camel-1.x branch, which is no longer maintained. Message content redelivered asynchronously by DLC is now rereadable Aggregator - Exception thrown from custom aggregation strategy could cause BatchSender thread to terminate Updated constants in the Documentation for HTTP Component Merged the http chucked option support from trunk to camel 1.x branch Added META-INF to SQL to make it discoverable by camel-core Upgrade to Velocity 1.6.4 Upgrade to CXF 2.2.9 Download Camel now and enjoy the ride! Hadrian Change Notification Preferences View Online | Add Comment