apache-camel

Calling secure webservice using CXF and Camel

萝らか妹 提交于 2019-12-12 03:34:07
问题 I am trying to call a SOAP webservice on an https URL, where client authentification (SSL) is required. Right now I am configuring my camel context using spring (switched away from blueprint) and creating my endpoints using the Camel CXF component with jetty as transport. I can't find any good examples for this out there. Maybe I should be using http4 in stead of Jetty. I was trying to set up some Camel sslContextParameters, but I can't see this working with CXF and/or Jetty. Can anyone point

Throttle consumption rate of all JMS consumers listening on an ActiveMQ queue

折月煮酒 提交于 2019-12-12 03:27:39
问题 Using Camel Throttler component you can define an upper limit on the rate of consumed messages per time period, e.g.: from("activemq:queueA").throttle(10).to("direct-vm:bla") What I see as non ideal is that Camel Throttler keeps the exchanges in-memory while they are blocked by the Throttler. So, if you have 100 queue consumers and for any reason the "direct-vm:bla" is slow (e.g. invoking external slow service), you may have in-memory up to 100 exchanges! I was wondering if there is an

JMS from Synchronous to Asynchronous

限于喜欢 提交于 2019-12-12 03:17:41
问题 I was able to create a Synchronous service bus using the JMS, but I was not able to turn it to Asynchronous. I'm trying to post a request to a service asynchronously, so if the service is down, I want the JMS queue keeps the request message and when the service starts up it delivers the message to the service and get back the response. here is my code <camelContext xmlns="http://camel.apache.org/schema/spring"> <route > <from id ="server" uri="jetty:http://0.0.0.0:9500/rsb/toService

Failed to parse WSDL during deploying app on jboss - maybe Woodstox

橙三吉。 提交于 2019-12-12 03:01:30
问题 I've a problem during deploying application on jboss. I found some information that changing version of woodstox might help, but it wasn't... Log: 16:58:09,079 INFO [stdout] (MSC service thread 1-2) [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Failed to parse WSDL 16:58:09,080 INFO [stdout] (MSC service thread 1-2) javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory 16:58:09,080 INFO [stdout] (MSC

Apache Camel 2.10.7 - monitor deletion of files from file system

守給你的承諾、 提交于 2019-12-12 02:57:17
问题 I am using camel 2.10.7 with great success from servicemix to feed files from the local file system to my application. The files shall remain on the file system, hence I use a configuration like this one. from uri="file:../ange-data/vessels?noop=true&idempotentKey=${file:name}-${file:modified}" This works great if I touch/update a file on the file system. Only issue remains: how can I then in my Java code detect that a file has been removed from the file system by some other person or process

Apache Camel: Route loop is lost when choice is added to the path

空扰寡人 提交于 2019-12-12 02:53:37
问题 I am trying to implement a route with conditions and splitters. from("{{" + feed + ".downloadSource}}") .routeId(feed) .setProperty("workDirectory",simple("{{workDirectory}}")) .setProperty("splitSize",simple("{{" + feed + ".splitSize}}")) .setProperty("feedName", simple(feed)) .setProperty("tableName",simple("{{" + feed + ".tableName}}")) .setProperty("options", simple("{{" + feed + ".options}}")) .setProperty("dateFormat", simple("{{" + feed + ".dateFormat}}")) .setProperty("headerFormat",

Controlling Start-Up and Shutdown of Camel Routes

守給你的承諾、 提交于 2019-12-12 02:52:34
问题 I am trying to make kind of a polling service towards a activemq queue using camel routes. I am using routing and routing-jsm plugins for grails. I have my route configuration set like this. class QueueRoute { def configure = { from("activemq:daemon").routeId("daemonRoute") .noAutoStartup() .shutdownRunningTask(ShutdownRunningTask.CompleteCurrentTaskOnly) .to('bean:daemonCamelService?method=receive') .end() } } and I am basically trying to do .suspendRoute("daemonRoute") and .resumeRoute(

PropertyAccessException in Apache camel Spring Ws Configuration

狂风中的少年 提交于 2019-12-12 02:52:04
问题 I want to configure Spring-ws Connection Manager to use PoolingHttpClientConnectionManager . here is my configuration camel-context.xml <camel-context> <route> <from uri="direct:sampleCall"/> <to uri="bean:sampleCommand"/> <to uri="spring-ws:http://{{sample.uri}}?timeout={{sample.timeout}}&messageSender=#messageSender&soapAction=urn:MidwareWebServiceIntf-MidwareWebService#sampleCommand"/> <to uri="bean:xmlProcessor"/> <to uri="bean:validateResponse"/> </route> <route> <from uri="direct

Apache Camel SSL RabbitMQ

百般思念 提交于 2019-12-12 02:41:31
问题 Folks, Apache-Camel does not seem to support AMQPs when connecting to Rabbit. Does anyone know if this is somewhere in the pipeline to be built? When attempting all connections, we get this in Rabbit logs: error on AMQP connection <0.30060.4>: {ssl_upgrade_error,timeout} (unknown POSIX error) Thanks! 回答1: Current RabbitMQ Camel Component does not support any SSL configuration features. Also, if you take a look to their JIRA it seems there is no ticket open for implementing this (Camel Jira

Camel properties file not found in class path

假装没事ソ 提交于 2019-12-12 02:17:24
问题 I am tring to load the resource: src/com/company/my.properties , but it can't be found on the classpath. Error Failed to create route route1: Route(route1)[[From[properties:{{fromroute}}]] -> [Choice[[When[... because of Failed to resolve endpoint: properties://%7B%7Bfromroute%7D%7D due to: Properties file com/company/my.properties not found in classpath camel core:2.18 camel properties read refer : Doc The my.properties file contains a 'fromroute' key: fromroute=file:/a/b The following