apache-camel

Updating camel version in fuse esb

。_饼干妹妹 提交于 2019-12-19 11:56:34
问题 Hi I would like to know which camel version is used in Fuse esb (jboss-fuse-6.0.0.redhat-024), according to the migration guide it's 2.10.0 . how can I update it to use 2.10.5 ? 回答1: JBoss fuse is using customer version of Camel which is based on the Camel 2.10.x branch. As there are lots other projects which may relates to this Camel version, I don't suggest you to change the version yourself. 来源: https://stackoverflow.com/questions/17806786/updating-camel-version-in-fuse-esb

Could not save date field as ISO date in mongo db via Camel?

妖精的绣舞 提交于 2019-12-19 11:48:27
问题 I have pojo like this: @Document(collection = "data") public class DataPoint { @Id private String id; private LocalDateTime createdDate; .... } in some code base I have following code: @Autowired private ProducerTemplate producerTemplate; ... final List<DataPoint> dataPoints =.... producerTemplate.sendBody("mongodb:mongoBean?database=" + mongoDataConfiguration.getDatabase() + "&createCollection=true&operation=insert&collection=" + mongoDataConfiguration.getDataPointCollection(), dataPoints);

How to use same CamelContext in multiple jar on the same war

…衆ロ難τιáo~ 提交于 2019-12-19 11:48:12
问题 I'm using the camel 2.16.2 and I need to use the one CamelContext across multiple jars as I need to have all the Camel Routers in to one CamelContext. So my war will have all those jars as maven artifacts. Please let me know how do I handle above scenario? Edit Just to elaborate more on above question. In my war myApp.war, I have initialized the CamelContext. There are three jars myApp1.jar, myApp2.jar and myApp3.jar. Each jar has it own routers defined separately. How do I start the routers

HTTP Post From ActiveMQ using Camel

淺唱寂寞╮ 提交于 2019-12-19 08:54:50
问题 We're using camel routes to post values from a queue to an http endpoint. I've successfully set up the route using camel's http component, but I'm unable to get the body of the jms message to post. For example, my route is set up like this: <route errorHandlerRef="dlc" autoStartup="true" id="route2" xmlns:ns2="http://camel.apache.org/schema/web" xmlns="http://camel.apache.org/schema/spring"> <from uri="activemq:test"/> <setHeader headerName="CamelHttpMethod"> <constant>POST</constant> <

Apache Camel - Split and aggregate - Old Exchange is always null

自闭症网瘾萝莉.ら 提交于 2019-12-19 04:12:37
问题 I see that this question has been asked a number of times but none of post helped or had a conclusive solution. I am splitting a message and then aggregating it using Aggregator2. The code was throwing exception because oldExchange was always null. So to test I designed a small code. I read an orders,xml file which looks like this <Orders xmlns="http://some/schema/Order"> <Order> <orderNum>1</orderNum> </Order> <Order> <orderNum>2</orderNum> </Order> <Order> <orderNum>3</orderNum> </Order>

Camel http4 download file using Basic authentication over Https

北城以北 提交于 2019-12-19 03:14:35
问题 I am trying to download a file from a Https url which requires Basic authentication. I am using HTTP4 I am trying to download from url - https://ebc.cybersource.com/ebc/DownloadReport/xxx.csv?authMethod=Basic&authUsername=scott&authPassword=tiger After the file is downloaded I need to save it to a folder. Here's what my code looks like from(xxx) .to("http4://ebc.cybersource.com/ebc/DownloadReport/xxx.csv?authMethod=Basic&authUsername=scott&authPassword=tiger") .to("file:target/messages

Apache Camel MDC add field from Body

落爺英雄遲暮 提交于 2019-12-18 16:58:34
问题 I am working with apache camel and would like to add certain keys to my logs using MDC. I went through the official Camel MDC Logging documentation which is pretty great. I am able to log my routeId's without much effort. I also need to add a field from Camel's Body. Worst case scenario I can add this manually in all routes, but I was wondering if its possible to add fields from body to MDC in a easier fashion? Any ideas are appreciated. I would really like to be able to do this without

apache camel and jackson

亡梦爱人 提交于 2019-12-18 16:38:09
问题 I'm trying out apache-camel, and I've set up a basic route that calls an http service via http4 component, transforms the result via unmarshal().json(JsonLibrary.Jackson), and then prints out part of the response in a bean component. The problem I'm having is that it blows up at runtime when it gets to the json unmarhsaller: No type converter available to convert from type: java.util.HashMap to the required type: com.xxx.MyType The response is of this format: {"data":[{"x":"y"},{"x":"z"}]}

Stacktrace from Camel Context onException

女生的网名这么多〃 提交于 2019-12-18 14:05:06
问题 I'm trying to retrieve the stacktrace from the onException handler in Apache Camel: <onException> <exception>java.lang.Exception</exception> <handled> <constant>true</constant> </handled> <setHeader headerName="exception"> <simple>${exception}</simple> </setHeader> </onException> However, the above only shows the exception rather than the entire stacktrace. I understand that Camel stores the caught exception as a property on the Exchange with the key: Exchange.EXCEPTION_CAUGHT, but how can

How do I cluster ServiceMix?

孤者浪人 提交于 2019-12-18 13:17:11
问题 I am looking for some initial pointers on how to cluster a ServiceMix solution. Basically what I need is: having 2 (or more) ServiceMix instances serving my routing needs and sharing the load if one instance fails, other(s) continue to serve if the failed one is brought back to life, it joins the party Searching for information confuses me since some references (eg. http://trenaman.blogspot.fi/2010/04/four-things-you-need-to-know-about-new.html) talk about "JBI cluster engine". I don't want