[CONF] Apache Camel CronScheduledRoutePolicy
Carsten Ringe bearbeitete die Seite: CronScheduledRoutePolicy Kommentar: added a short example for the new CronScheduledRoutePolicy in quartz2 ... Maven users will need to add a camel-quartz dependency to their pom.xml to avail this capability. Codeblock xml dependency groupIdorg.apache.camel/groupId artifactIdcamel-quartz/artifactId versionx.x.x/version !-- use the same version as your Camel core version -- /dependency ... Tipp title Relationship to the [Quartz2] component From Camel 2.12.2 onwards you can also make use of the Quartz2 based implementation of this route policy.
buildbot failure in ASF Buildbot on camel-site-production
The Buildbot has detected a new failure on builder camel-site-production while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/camel-site-production/builds/17129 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: bb-cms-slave Build Reason: The Nightly scheduler named 'camel-site-production' triggered this build Build Source Stamp: [branch camel/website] HEAD Blamelist: BUILD FAILED: failed compile sincerely, -The Buildbot
git commit: CAMEL-7265: Added api to get json of route static input and output endpoint uris.
Repository: camel Updated Branches: refs/heads/master 1a4376925 - b6ee9c91e CAMEL-7265: Added api to get json of route static input and output endpoint uris. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b6ee9c91 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b6ee9c91 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b6ee9c91 Branch: refs/heads/master Commit: b6ee9c91ec32d76a5b8959f1495f3adacd9083f1 Parents: 1a43769 Author: Claus Ibsen davscl...@apache.org Authored: Tue Mar 4 11:00:20 2014 +0100 Committer: Claus Ibsen davscl...@apache.org Committed: Tue Mar 4 11:00:47 2014 +0100 -- .../java/org/apache/camel/CamelContext.java | 10 ++- .../mbean/ManagedCamelContextMBean.java | 3 + .../api/management/mbean/ManagedRouteMBean.java | 3 + .../apache/camel/impl/DefaultCamelContext.java | 59 + .../management/mbean/ManagedCamelContext.java | 4 ++ .../camel/management/mbean/ManagedRoute.java| 4 ++ .../camel/model/EndpointRequiredDefinition.java | 29 + .../apache/camel/model/EnrichDefinition.java| 11 +++- .../org/apache/camel/model/FromDefinition.java | 7 ++- .../camel/model/PollEnrichDefinition.java | 11 +++- .../camel/model/RouteDefinitionHelper.java | 37 ++- .../org/apache/camel/model/SendDefinition.java | 10 ++- .../apache/camel/model/WireTapDefinition.java | 14 - .../org/apache/camel/util/StringHelper.java | 18 ++ .../management/ManagedCamelContextTest.java | 16 + .../ManagedRouteDumpRouteAsXmlTest.java | 18 ++ .../model/GatherAllStaticEndpointUrisTest.java | 66 17 files changed, 312 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/b6ee9c91/camel-core/src/main/java/org/apache/camel/CamelContext.java -- diff --git a/camel-core/src/main/java/org/apache/camel/CamelContext.java b/camel-core/src/main/java/org/apache/camel/CamelContext.java index a9005bc..9232038 100644 --- a/camel-core/src/main/java/org/apache/camel/CamelContext.java +++ b/camel-core/src/main/java/org/apache/camel/CamelContext.java @@ -251,7 +251,7 @@ public interface CamelContext extends SuspendableService, RuntimeConfiguration { /** * Gets a component from the context by name. * - * @param componentName the name of the component + * @param name the name of the component * @param autoCreateComponents whether or not the component should * be lazily created if it does not already exist * @return the component @@ -1251,6 +1251,14 @@ public interface CamelContext extends SuspendableService, RuntimeConfiguration { String getComponentDocumentation(String componentName) throws IOException; /** + * Creates a JSON representation of all the bstatic/b configured endpoints defined in the given route(s). + * + * @param routeId for a particular route, or ttnull/tt for all routes + * @return a JSON string + */ +String createRouteStaticEndpointJson(String routeId); + +/** * Gets the {@link StreamCachingStrategy} to use. */ StreamCachingStrategy getStreamCachingStrategy(); http://git-wip-us.apache.org/repos/asf/camel/blob/b6ee9c91/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.java -- diff --git a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.java b/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.java index fb9cdc2..1befa4f 100644 --- a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.java +++ b/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.java @@ -258,4 +258,7 @@ public interface ManagedCamelContextMBean extends ManagedPerformanceCounterMBean @ManagedOperation(description = Returns the HTML documentation for the given camel component) String getComponentDocumentation(String componentName) throws IOException; +@ManagedOperation(description = Returns the JSON representation of all the static endpoints defined in all the routes) +String createRouteStaticEndpointJson(); + } \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/b6ee9c91/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedRouteMBean.java -- diff --git a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedRouteMBean.java
buildbot success in ASF Buildbot on camel-site-production
The Buildbot has detected a restored build on builder camel-site-production while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/camel-site-production/builds/17131 Buildbot URL: http://ci.apache.org/ Buildslave for this Build: bb-cms-slave Build Reason: The Nightly scheduler named 'camel-site-production' triggered this build Build Source Stamp: [branch camel/website] HEAD Blamelist: Build succeeded! sincerely, -The Buildbot
svn commit: r899973 - in /websites/production/camel/content: cache/main.pageCache cronscheduledroutepolicy.html
Author: buildbot Date: Tue Mar 4 11:18:47 2014 New Revision: 899973 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/cronscheduledroutepolicy.html Modified: websites/production/camel/content/cache/main.pageCache == Binary files - no diff available. Modified: websites/production/camel/content/cronscheduledroutepolicy.html == --- websites/production/camel/content/cronscheduledroutepolicy.html (original) +++ websites/production/camel/content/cronscheduledroutepolicy.html Tue Mar 4 11:18:47 2014 @@ -85,77 +85,35 @@ tbody tr td valign=top width=100% -div class=wiki-content maincontenth2 id=CronScheduledRoutePolicy-CronScheduledRoutePolicyCronScheduledRoutePolicy/h2 -pstrongAvailable as of Camel version 2.6/strong/p - -pCronScheduledRoutePolicy is a a shape=rect href=scheduledroutepolicy.htmlScheduledRoutePolicy/a that facilitates route activation, de-activation, suspension and resumption of routes based on a a shape=rect href=quartz.htmlQuartz/a codeCronTrigger/code./p - -pMaven users will need to add a camel-quartz dependency to their codepom.xml/code to avail this capability./p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[ -lt;dependencygt; +div class=wiki-content maincontenth2 id=CronScheduledRoutePolicy-CronScheduledRoutePolicyCronScheduledRoutePolicy/h2pstrongAvailable as of Camel version 2.6/strong/ppCronScheduledRoutePolicy is a a shape=rect href=scheduledroutepolicy.htmlScheduledRoutePolicy/a that facilitates route activation, de-activation, suspension and resumption of routes based on a a shape=rect href=quartz.htmlQuartz/a codeCronTrigger/code./ppMaven users will need to add a camel-quartz dependency to their codepom.xml/code to avail this capability./pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[lt;dependencygt; lt;groupIdgt;org.apache.camellt;/groupIdgt; lt;artifactIdgt;camel-quartzlt;/artifactIdgt; lt;versiongt;x.x.xlt;/versiongt; lt;!-- use the same version as your Camel core version --gt; lt;/dependencygt; ]]/script -/div/div - -div class=aui-message success shadowed information-macro +/div/divdiv class=aui-message success shadowed information-macro p class=titleRelationship to the [Quartz] component/p span class=aui-icon icon-successIcon/span div class=message-content - -pAll Scheduled route policies share the scheduler created by the Quartz component. In this way, scheduler, jobs and triggers can be managed in a common and consistent way./p +pAll Scheduled route policies share the scheduler created by the Quartz component. In this way, scheduler, jobs and triggers can be managed in a common and consistent way./p /div /div - - div class=aui-message success shadowed information-macro p class=titleRelationship to the [Quartz2] component/p span class=aui-icon icon-successIcon/span div class=message-content - -pFrom Camel 2.12.2 onwards you can also make use of the a shape=rect href=quartz2.htmlQuartz2/a based implementation of this route policy./p +pFrom Camel 2.12.2 onwards you can also make use of the a shape=rect href=quartz2.htmlQuartz2/a based implementation of this route policy./pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[lt;bean id=quot;myStartPolicyquot; class=quot;org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicyquot;gt; + lt;!-- start every 5min from monday to saturday --gt; + lt;property name=quot;routeStartTimequot; value=quot;0 0/5 * ? * 1-6 *quot; /gt; +lt;/beangt; +]]/script +/div/divpSee a shape=rect href=cronscheduledroutepolicy.htmlCronScheduledRoutePolicy description/a./p /div /div - - -h3 id=CronScheduledRoutePolicy-HowitworksHow it works/h3 - -pIn order to use a a shape=rect href=cronscheduledroutepolicy.htmlCronScheduledRoutePolicy/a it is necessary to instantiate an object of the type codeorg.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy/code./p - -pIn order to perform a route operation at a given time the following information must be provided./p - -ulliStarting a route -div class=table-wraptable
[1/2] git commit: CAMEL-7267: Error install camel-salesforce in karaf if joda-time 1.x has been installed already. Need to open up the import version range.
Repository: camel Updated Branches: refs/heads/camel-2.12.x fca886e36 - 90daf3818 refs/heads/master b6ee9c91e - 738b6097f CAMEL-7267: Error install camel-salesforce in karaf if joda-time 1.x has been installed already. Need to open up the import version range. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/738b6097 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/738b6097 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/738b6097 Branch: refs/heads/master Commit: 738b6097fbe4db00f31dbe3ca18c15cb5a34adb0 Parents: b6ee9c9 Author: Claus Ibsen davscl...@apache.org Authored: Tue Mar 4 14:41:07 2014 +0100 Committer: Claus Ibsen davscl...@apache.org Committed: Tue Mar 4 14:41:07 2014 +0100 -- components/camel-salesforce/camel-salesforce-component/pom.xml | 3 +++ 1 file changed, 3 insertions(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/738b6097/components/camel-salesforce/camel-salesforce-component/pom.xml -- diff --git a/components/camel-salesforce/camel-salesforce-component/pom.xml b/components/camel-salesforce/camel-salesforce-component/pom.xml index 66165a1..011cb52 100644 --- a/components/camel-salesforce/camel-salesforce-component/pom.xml +++ b/components/camel-salesforce/camel-salesforce-component/pom.xml @@ -31,6 +31,9 @@ descriptionCamel Salesforce support/description properties +camel.osgi.import.before.defaults +org.joda.time.*;version=[1.6,3) +/camel.osgi.import.before.defaults camel.osgi.export.pkg org.apache.camel.component.salesforce, org.apache.camel.component.salesforce.api.*
[2/2] git commit: CAMEL-7267: Error install camel-salesforce in karaf if joda-time 1.x has been installed already. Need to open up the import version range.
CAMEL-7267: Error install camel-salesforce in karaf if joda-time 1.x has been installed already. Need to open up the import version range. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/90daf381 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/90daf381 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/90daf381 Branch: refs/heads/camel-2.12.x Commit: 90daf3818b911483c83b20b32b4947d47553a625 Parents: fca886e Author: Claus Ibsen davscl...@apache.org Authored: Tue Mar 4 14:41:07 2014 +0100 Committer: Claus Ibsen davscl...@apache.org Committed: Tue Mar 4 14:42:37 2014 +0100 -- components/camel-salesforce/camel-salesforce-component/pom.xml | 3 +++ 1 file changed, 3 insertions(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/90daf381/components/camel-salesforce/camel-salesforce-component/pom.xml -- diff --git a/components/camel-salesforce/camel-salesforce-component/pom.xml b/components/camel-salesforce/camel-salesforce-component/pom.xml index b624895..3338fba 100644 --- a/components/camel-salesforce/camel-salesforce-component/pom.xml +++ b/components/camel-salesforce/camel-salesforce-component/pom.xml @@ -31,6 +31,9 @@ descriptionCamel Salesforce support/description properties +camel.osgi.import.before.defaults +org.joda.time.*;version=[1.6,3) +/camel.osgi.import.before.defaults camel.osgi.export.pkg org.apache.camel.component.salesforce, org.apache.camel.component.salesforce.api.*
[CONF] Apache Camel JPA
Carsten Ringe bearbeitete die Seite: JPA Kommentar: fix typo ... Codeblock xml camelContext xmlns=http://camel.apache.org/schema/spring route id=JpaMessageIdRepositoryTest from uri=direct:start / idempotentConsumer messageIdRepositoryRef=jpaStore headermessageId/camel:header to uri=mock:result / /idempotentConsumer /route /camelContext ... Online anzeigen Gefllt mir nderungen anzeigen berwachung des Bereichs beenden Benachrichtigungen verwalten Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet
git commit: CAMEL-7267: Error install camel-splunk in karaf if joda-time 1.x has been installed already. Need to open up the import version range.
Repository: camel Updated Branches: refs/heads/master 738b6097f - 81d27e80f CAMEL-7267: Error install camel-splunk in karaf if joda-time 1.x has been installed already. Need to open up the import version range. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/81d27e80 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/81d27e80 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/81d27e80 Branch: refs/heads/master Commit: 81d27e80fa5b4f315045296c5c29d7cb32b6530b Parents: 738b609 Author: Claus Ibsen davscl...@apache.org Authored: Tue Mar 4 16:11:32 2014 +0100 Committer: Claus Ibsen davscl...@apache.org Committed: Tue Mar 4 16:11:32 2014 +0100 -- components/camel-splunk/pom.xml | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/81d27e80/components/camel-splunk/pom.xml -- diff --git a/components/camel-splunk/pom.xml b/components/camel-splunk/pom.xml index fb7c25c..7abd8db 100644 --- a/components/camel-splunk/pom.xml +++ b/components/camel-splunk/pom.xml @@ -31,6 +31,9 @@ packagingbundle/packaging properties +camel.osgi.import.before.defaults + org.joda.time.*;version=[1.6,3) +/camel.osgi.import.before.defaults camel.osgi.export.pkgorg.apache.camel.component.splunk.*/camel.osgi.export.pkg camel.osgi.export.serviceorg.apache.camel.spi.ComponentResolver;component=splunk/camel.osgi.export.service /properties @@ -88,12 +91,4 @@ /dependency /dependencies - !-- TODO: remove me when we use SMX bundle version for splunk -- - repositories -repository - idext-release-local/id - urlhttp://splunk.artifactoryonline.com/splunk/ext-releases-local/url -/repository - /repositories - /project
svn commit: r899997 - in /websites/production/camel/content: cache/main.pageCache jpa.html
Author: buildbot Date: Tue Mar 4 15:18:49 2014 New Revision: 87 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/jpa.html Modified: websites/production/camel/content/cache/main.pageCache == Binary files - no diff available. Modified: websites/production/camel/content/jpa.html == --- websites/production/camel/content/jpa.html (original) +++ websites/production/camel/content/jpa.html Tue Mar 4 15:18:49 2014 @@ -171,7 +171,7 @@ public class MultiSteps { lt;route id=quot;JpaMessageIdRepositoryTestquot;gt; lt;from uri=quot;direct:startquot; /gt; lt;idempotentConsumer messageIdRepositoryRef=quot;jpaStorequot;gt; -lt;headergt;messageIdlt;/camel:headergt; +lt;headergt;messageIdlt;/headergt; lt;to uri=quot;mock:resultquot; /gt; lt;/idempotentConsumergt; lt;/routegt;
[CONF] Apache Camel XStream
Carsten Ringe bearbeitete die Seite: XStream Kommentar: move maven dependency to the top, like other pages ... XStream is a Data Format which uses the XStream library to marshal and unmarshal Java objects to and from XML. To use XStream in your camel routes you need to add the a dependency oncamel-xstreamwhich implements this data format. Maven users will need to add the following dependency to their pom.xmlfor this component: Codeblock language xml dependency groupIdorg.apache.camel/groupId artifactIdcamel-xstream/artifactId versionx.x.x/version !-- use the same version as your Camel core version -- /dependency Codeblock // lets turn Object messages into XML then send to MQSeries from(activemq:My.Queue). marshal().xstream(). to(mqseries:Another.Queue); ... From Camel 2.2.0, you can set the encoding of XML in Xstream DataFormat by setting the Exchange's property with the key Exchange.CHARSET_NAME, or setting the encoding property on Xstream from DSL or Spring config. Codeblock
[CONF] Apache Camel XStream
Carsten Ringe bearbeitete die Seite: XStream Kommentar: add headline above codeblock ... Codeblock language xml dependency groupIdorg.apache.camel/groupId artifactIdcamel-xstream/artifactId versionx.x.x/version !-- use the same version as your Camel core version -- /dependency Using the Java DSL Codeblock // lets turn Object messages into XML then send to MQSeries from(activemq:My.Queue). marshal().xstream(). to(mqseries:Another.Queue); ... Online anzeigen Gefllt mir nderungen anzeigen berwachung des Bereichs beenden Benachrichtigungen verwalten Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet
[CONF] Apache Camel XmlRpc
Richard Kettelerij edited the page: XmlRpc ... This component provides a dataformat for xml, which allows serialization and deserialization of request messages and response message using Apache XmlRpc's bindary binary dataformat. You can also invoke the XMLRPC Service through the camel-xmlrpc producer. Maven users will need to add the following dependency to their pom.xml for this component: Code Block xml dependency groupIdorg.apache.camel/groupId artifactIdcamel-xmlrpc/artifactId versionx.x.x/version !-- use the same version as your Camel core version -- /dependency ... An example of a typical XML-RPC request would be: Code Block ?xml version=1.0? methodCall methodNameexamples.getStateName/methodName params param valuei440/i4/value /param /params /methodCall An example of a typical XML-RPC response would be: Code Block
svn commit: r900001 [1/3] - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache xmlrpc.html xstream.html
Author: buildbot Date: Tue Mar 4 16:19:23 2014 New Revision: 91 Log: Production update by buildbot for camel Modified: websites/production/camel/content/book-dataformat-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/xmlrpc.html websites/production/camel/content/xstream.html Modified: websites/production/camel/content/book-dataformat-appendix.html == --- websites/production/camel/content/book-dataformat-appendix.html (original) +++ websites/production/camel/content/book-dataformat-appendix.html Tue Mar 4 16:19:23 2014 @@ -530,39 +530,26 @@ from(quot;activemq:My.Queuequot;). lt;/dependencygt; ]]/script /div/div -h2 id=BookDataFormatAppendix-XStreamXStream/h2 - -pXStream is a a shape=rect href=data-format.htmlData Format/a which uses the a shape=rect class=external-link href=http://xstream.codehaus.org/; rel=nofollowXStream library/a to marshal and unmarshal Java objects to and from XML./p - -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[ -// lets turn Object messages into XML then send to MQSeries +h2 id=BookDataFormatAppendix-XStreamXStream/h2pXStream is a a shape=rect href=data-format.htmlData Format/a which uses the a shape=rect class=external-link href=http://xstream.codehaus.org/; rel=nofollowXStream library/a to marshal and unmarshal Java objects to and from XML./ppTo use XStream in your camel routes you need to add the a dependency on#160;strongcamel-xstream/strong#160;which implements this data format./ppMaven users will need to add the following dependency to their codepom.xml/code#160;for this component:/pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[lt;dependencygt; + lt;groupIdgt;org.apache.camellt;/groupIdgt; + lt;artifactIdgt;camel-xstreamlt;/artifactIdgt; + lt;versiongt;x.x.xlt;/versiongt; + lt;!-- use the same version as your Camel core version --gt; +lt;/dependencygt; +]]/script +/div/divh3 id=BookDataFormatAppendix-UsingtheJavaDSL.1Using the Java DSL/h3div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[// lets turn Object messages into XML then send to MQSeries from(quot;activemq:My.Queuequot;). marshal().xstream(). to(quot;mqseries:Another.Queuequot;); ]]/script -/div/div - -h3 id=BookDataFormatAppendix-XMLInputFactoryandXMLOutputFactoryXMLInputFactory and XMLOutputFactory /h3 -pa shape=rect class=external-link href=http://xstream.codehaus.org/; rel=nofollowThe XStream library/a uses the codejavax.xml.stream.XMLInputFactory/code and codejavax.xml.stream.XMLOutputFactory/code, you can control which implementation of this factory should be used./p - -pThe Factory is discovered using this algorithm:br clear=none -1. Use the codejavax.xml.stream.XMLInputFactory/code , codejavax.xml.stream.XMLOutputFactory/code system property.br clear=none -2. Use the codelib/xml.stream.properties/code file in the codeJRE_HOME/code directory.br clear=none -3. Use the Services API, if available, to determine the classname by looking in the codeMETA-INF/services/javax.xml.stream.XMLInputFactory/code, codeMETA-INF/services/javax.xml.stream.XMLOutputFactory/code files in jars available to the JRE.br clear=none -4. Use the platform default XMLInputFactory,XMLOutputFactory instance./p - -h3 id=BookDataFormatAppendix-HowtosettheXMLencodinginXstreamDataFormat?How to set the XML encoding in Xstream DataFormat?/h3 -pFrom Camel 2.2.0, you can set the encoding of XML in Xstream DataFormat by setting the Exchange's property with the key codeExchange.CHARSET_NAME/code, or setting the encoding property on Xstream from DSL or Spring config./p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[ -from(quot;activemq:My.Queuequot;). +/div/divh3 id=BookDataFormatAppendix-XMLInputFactoryandXMLOutputFactoryXMLInputFactory and XMLOutputFactory/h3pa shape=rect class=external-link href=http://xstream.codehaus.org/; rel=nofollowThe XStream library/a uses the codejavax.xml.stream.XMLInputFactory/code and codejavax.xml.stream.XMLOutputFactory/code, you can control which implementation of this factory should be used./ppThe Factory is discovered using this algorithm:br clear=none 1. Use the codejavax.xml.stream.XMLInputFactory/code , codejavax.xml.stream.XMLOutputFactory/code system property.br clear=none 2. Use the codelib/xml.stream.properties/code file in the
svn commit: r900001 [3/3] - in /websites/production/camel/content: book-dataformat-appendix.html book-in-one-page.html cache/main.pageCache xmlrpc.html xstream.html
Modified: websites/production/camel/content/xmlrpc.html == --- websites/production/camel/content/xmlrpc.html (original) +++ websites/production/camel/content/xmlrpc.html Tue Mar 4 16:19:23 2014 @@ -86,33 +86,16 @@ tbody tr td valign=top width=100% -div class=wiki-content maincontenth2 id=XmlRpc-XmlRpcComponentXmlRpc Component/h2 -pstrongAvailable as of Camel 2.11/strong/p - -pThis component provides a dataformat for xml, which allows serialization and deserialization of request messages and response message using Apache XmlRpc's bindary dataformat. You can also invoke the XMLRPC Service through the camel-xmlrpc producer./p - -pMaven users will need to add the following dependency to their codepom.xml/code for this component:/p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[ -lt;dependencygt; +div class=wiki-content maincontenth2 id=XmlRpc-XmlRpcComponentXmlRpc Component/h2pstrongAvailable as of Camel 2.11/strong/ppThis component provides a dataformat for xml, which allows serialization and deserialization of request messages and response message using Apache XmlRpc's binary dataformat. You can also invoke the XMLRPC Service through the camel-xmlrpc producer./ppMaven users will need to add the following dependency to their codepom.xml/code for this component:/pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: xml; gutter: false type=syntaxhighlighter![CDATA[lt;dependencygt; lt;groupIdgt;org.apache.camellt;/groupIdgt; lt;artifactIdgt;camel-xmlrpclt;/artifactIdgt; lt;versiongt;x.x.xlt;/versiongt; lt;!-- use the same version as your Camel core version --gt; lt;/dependencygt; ]]/script -/div/div - -h3 id=XmlRpc-XmlRpcOverviewXmlRpc Overview/h3 - -pIt's a a shape=rect class=external-link href=http://xmlrpc.scripting.com/spec; rel=nofollowspec/a and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet. /p - -pIt's remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned./p - -pAn example of a typical XML-RPC request would be:/p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[ -lt;?xml version=quot;1.0quot;?gt; +/div/divh3 id=XmlRpc-XmlRpcOverviewXmlRpc Overview/h3pIt's a a shape=rect class=external-link href=http://xmlrpc.scripting.com/spec; rel=nofollowspec/a and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet./ppIt's remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned./ppAn example of a typical XML-RPC request would be:/pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[lt;?xml version=quot;1.0quot;?gt; lt;methodCallgt; lt;methodNamegt;examples.getStateNamelt;/methodNamegt; lt;paramsgt; @@ -122,12 +105,8 @@ lt;/paramsgt; lt;/methodCallgt; ]]/script -/div/div - -pAn example of a typical XML-RPC response would be:/p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[ -lt;?xml version=quot;1.0quot;?gt; +/div/divpAn example of a typical XML-RPC response would be:/pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[lt;?xml version=quot;1.0quot;?gt; lt;methodResponsegt; lt;paramsgt; lt;paramgt; @@ -136,12 +115,8 @@ lt;/paramsgt; lt;/methodResponsegt; ]]/script -/div/div - -pA typical XML-RPC fault would be:/p -div class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl -script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[ -lt;?xml version=quot;1.0quot;?gt; +/div/divpA typical XML-RPC fault would be:/pdiv class=code panel pdl style=border-width: 1px;div class=codeContent panelContent pdl +script class=theme: Default; brush: java; gutter: false type=syntaxhighlighter![CDATA[lt;?xml version=quot;1.0quot;?gt; lt;methodResponsegt; lt;faultgt;
git commit: CAMEL-7264 Added file path header when HDFS consumer pull the message
Repository: camel Updated Branches: refs/heads/master 81d27e80f - 3eb353a2c CAMEL-7264 Added file path header when HDFS consumer pull the message Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3eb353a2 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3eb353a2 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3eb353a2 Branch: refs/heads/master Commit: 3eb353a2c87a93e5bf9c527e33e801968ddf7c39 Parents: 81d27e8 Author: Willem Jiang willem.ji...@gmail.com Authored: Wed Mar 5 11:16:12 2014 +0800 Committer: Willem Jiang willem.ji...@gmail.com Committed: Wed Mar 5 11:16:44 2014 +0800 -- .../src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java | 1 + 1 file changed, 1 insertion(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/3eb353a2/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java -- diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java index 84c7e92..2c78740 100644 --- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java +++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java @@ -138,6 +138,7 @@ public final class HdfsConsumer extends ScheduledPollConsumer { Message message = new DefaultMessage(); String fileName = StringUtils.substringAfterLast(status.getPath().toString(), /); message.setHeader(Exchange.FILE_NAME, fileName); +message.setHeader(Exchange.FILE_PATH, status.getPath().toString()); if (key.value != null) { message.setHeader(HdfsHeader.KEY.name(), key.value); }
[2/2] git commit: CAMEL-7264 Added file path header when HDFS consumer pull the message
CAMEL-7264 Added file path header when HDFS consumer pull the message Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d26d7c52 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d26d7c52 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d26d7c52 Branch: refs/heads/camel-2.11.x Commit: d26d7c52fd926efd11f48e1e28b735dbb9443793 Parents: 5d183c8 Author: Willem Jiang willem.ji...@gmail.com Authored: Wed Mar 5 11:16:12 2014 +0800 Committer: Willem Jiang willem.ji...@gmail.com Committed: Wed Mar 5 11:22:38 2014 +0800 -- .../src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java | 1 + 1 file changed, 1 insertion(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/d26d7c52/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java -- diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java index b24a9ea..4a28d20 100644 --- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java +++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java @@ -139,6 +139,7 @@ public final class HdfsConsumer extends ScheduledPollConsumer { Message message = new DefaultMessage(); String fileName = StringUtils.substringAfterLast(status.getPath().toString(), /); message.setHeader(Exchange.FILE_NAME, fileName); +message.setHeader(Exchange.FILE_PATH, status.getPath().toString()); if (key.value != null) { message.setHeader(HdfsHeader.KEY.name(), key.value); }
[1/2] git commit: CAMEL-7264 Added file path header when HDFS consumer pull the message
Repository: camel Updated Branches: refs/heads/camel-2.11.x 5d183c825 - d26d7c52f refs/heads/camel-2.12.x 90daf3818 - 6c5d4cc69 CAMEL-7264 Added file path header when HDFS consumer pull the message Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6c5d4cc6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6c5d4cc6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6c5d4cc6 Branch: refs/heads/camel-2.12.x Commit: 6c5d4cc692ffb5589c66c76600a2f1089711b283 Parents: 90daf38 Author: Willem Jiang willem.ji...@gmail.com Authored: Wed Mar 5 11:16:12 2014 +0800 Committer: Willem Jiang willem.ji...@gmail.com Committed: Wed Mar 5 11:22:11 2014 +0800 -- .../src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java | 1 + 1 file changed, 1 insertion(+) -- http://git-wip-us.apache.org/repos/asf/camel/blob/6c5d4cc6/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java -- diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java index 84c7e92..2c78740 100644 --- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java +++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java @@ -138,6 +138,7 @@ public final class HdfsConsumer extends ScheduledPollConsumer { Message message = new DefaultMessage(); String fileName = StringUtils.substringAfterLast(status.getPath().toString(), /); message.setHeader(Exchange.FILE_NAME, fileName); +message.setHeader(Exchange.FILE_PATH, status.getPath().toString()); if (key.value != null) { message.setHeader(HdfsHeader.KEY.name(), key.value); }
git commit: Downgrade the karaf version due to KARAF-2746
Repository: camel Updated Branches: refs/heads/master 3eb353a2c - cf05fef34 Downgrade the karaf version due to KARAF-2746 Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cf05fef3 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cf05fef3 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cf05fef3 Branch: refs/heads/master Commit: cf05fef34ba78e0aec412fff7014d6f5cab163b8 Parents: 3eb353a Author: Willem Jiang willem.ji...@gmail.com Authored: Wed Mar 5 13:12:12 2014 +0800 Committer: Willem Jiang willem.ji...@gmail.com Committed: Wed Mar 5 13:12:12 2014 +0800 -- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/camel/blob/cf05fef3/parent/pom.xml -- diff --git a/parent/pom.xml b/parent/pom.xml index eaf25e9..6bc7768 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -252,7 +252,7 @@ junit-version4.11/junit-version jython-version2.5.3/jython-version kafka-version0.8.0/kafka-version -karaf-version2.3.4/karaf-version +karaf-version2.3.3/karaf-version kie-version6.0.0.Final/kie-version krati-version0.4.9/krati-version kxml2-bundle-version2.3.0_2/kxml2-bundle-version