apache-camel

camel cxf on wildfly

北城余情 提交于 2020-02-06 07:43:05
问题 I'v created a SOAP webservice and I'd like to expose it with camel-cxf on wildfly. When I want to deploy it I get the following error: Apache CXF library (cxf-core-3.2.0.jar) detected in ws endpoint deployment; either provide a proper deployment replacing embedded libraries with container module dependencies or disable the webservices subsystem for the current deployment adding a proper jboss-deployment-structure.xml descriptor to it. The former approach is recommended, as the latter approach

Apache Camel - Spring DSL - Pass String argument to bean method

天大地大妈咪最大 提交于 2020-02-06 04:32:13
问题 On Camel 2.10.1, the following worked: <camel:bean ref="profilingBean" method="addProfilingContext('TEST')"/> The method in question takes a String parameter Migrating to 2.10.6 , this does not work anymore, it tries to call TEST as another class. I have tried wrapping with ${} , trying to use exotic combinations of "& quot;" etc... The only solution I found was to put the value in a header using constant language then call the header using simple. Obviously, this isn't very clean... Do you

Camel: retrieving object in activemq message

谁说我不能喝 提交于 2020-02-05 13:07:35
问题 Is there a way to put object in message in camel route process. lets say i have a route from("direct:send") .process(queueProcessor) .to(activemqEndPoint) and in the queueProcessor i am putting an object in the exchange, Now, I have a listener which listens to activemqEndPoint(queue) public void onMessage(Message message) { try { //here i want to get the message i set it in the exchange } Any help?? THanks in advance 回答1: trying this worked for me from("direct:send") .process(queueProcessor)

Camel: retrieving object in activemq message

江枫思渺然 提交于 2020-02-05 13:07:17
问题 Is there a way to put object in message in camel route process. lets say i have a route from("direct:send") .process(queueProcessor) .to(activemqEndPoint) and in the queueProcessor i am putting an object in the exchange, Now, I have a listener which listens to activemqEndPoint(queue) public void onMessage(Message message) { try { //here i want to get the message i set it in the exchange } Any help?? THanks in advance 回答1: trying this worked for me from("direct:send") .process(queueProcessor)

How to find all Endpoints of route (Apache Camel, Java)

我们两清 提交于 2020-02-05 01:12:58
问题 I have several routes and many endpoints in Camel context. So need to get all endpoints created by one Route: CamelContext context = new DefaultCamelContext(); RouteBuilder route1 = new RouteBuilder() { public void configure() { from("file:data/inbox?noop=true") .routeId("myRoute1") .enrich("http://website.com/file.txt") .to("file:data/outbox") .to("mock:someway"); } }; RouteBuilder route2 = new RouteBuilder() { public void configure() { from("file:data/outbox?noop=true") .routeId("myRoute2")

How to find all Endpoints of route (Apache Camel, Java)

那年仲夏 提交于 2020-02-05 01:10:27
问题 I have several routes and many endpoints in Camel context. So need to get all endpoints created by one Route: CamelContext context = new DefaultCamelContext(); RouteBuilder route1 = new RouteBuilder() { public void configure() { from("file:data/inbox?noop=true") .routeId("myRoute1") .enrich("http://website.com/file.txt") .to("file:data/outbox") .to("mock:someway"); } }; RouteBuilder route2 = new RouteBuilder() { public void configure() { from("file:data/outbox?noop=true") .routeId("myRoute2")

Best way to load dynamically routes in Apache Camel

元气小坏坏 提交于 2020-01-29 17:50:07
问题 we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created

Best way to load dynamically routes in Apache Camel

久未见 提交于 2020-01-29 17:49:07
问题 we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created

Camel sql component cron schedule customization

久未见 提交于 2020-01-25 12:42:51
问题 As I have looked , camel sql-component is not supporting cron expressions but fixed delays etc. I have checked source code of the component but I could not find an easy way to customize it. Is there any other way to make it or should I extend all component, endpoint , consumer and producer in order to make it? Thanks 回答1: See the documentation about polling consumer: http://camel.apache.org/polling-consumer.html at the section further below for scheduled poll consumers . You can configure to

Combining dataflow results

不问归期 提交于 2020-01-24 22:15:08
问题 I am develop a Dataflow pipeline which reads a collection of files and, for each line in each file, performs a series of Dataflow blocks. After all steps have completed for each line in a file, I am wanting to execute further blocks on the file itself, but I don't know how this is possible. It is straightforward to split processing via a TransformManyBlock , but how can one then consolidate? I am used to Apache Camel's Splitter and Aggregator functionality - or there a fundamental disconnect