apache-camel

Camel CXF: Soap client timeout

淺唱寂寞╮ 提交于 2019-12-11 05:33:04
问题 I am using Camel CXF endpoint to connect to my soap server. I wanted to add timeout for my request from client. I am using continuationTimeout option for that. But it's not working. The request is timeout without waiting for the time that I've configured. Below is my endpoint configuration. <camel-cxf:cxfEndpoint id="tmAPIWSEndpoint" address="http://IN2NPDCEDB01:8088/webservices/services/TransportationManager" wsdlURL="/wsdl/TransportationManager.wsdl" endpointName="cis

Apache Camel JPA: update a column based on a column in another table

女生的网名这么多〃 提交于 2019-12-11 05:32:38
问题 I have two entities Entity1 and Entity2. This what I need to do as part of my route. I need to read Entity1 and get a column value, take that column value and update that to a column in Entity2. How can I do this using Camel Jpa? 来源: https://stackoverflow.com/questions/15280885/apache-camel-jpa-update-a-column-based-on-a-column-in-another-table

How to make Camel pattern=“InOut” work with IBM MQ

别说谁变了你拦得住时间么 提交于 2019-12-11 05:18:22
问题 As described here: setting ReplyToQ attribute of MQMD of IBM MQ request message with Camel I managed to set ReplyToQ in MQMD of request properly in Camel Route, but I can't get the response in the same Route, with the IBM MQ Endpoint ("to") that I would like to use both for output (of request) and for input (of response), because it is matching wrong Correlation ID, like this: The OUT message was not received within: 20000 millis due reply message with correlationID: Camel-ID-MYPC-62418

Apache Camel — Websphere MQ integration

醉酒当歌 提交于 2019-12-11 05:14:53
问题 I have an application using apache-camel solution, and would like to send message to Websphere MQ Server through jms, convert jms property JMS_IBM_MQMD_MsgId to MQMD field MQMD.MsgId , so that I set this value on message through camel exchange.getIn().setHeader(WMQConstants.JMS_IBM_MQMD_MSGID, "XXXXXXXXXXXXXXXXXXXXXXXX".getBytes()); According to Apache Camel - IBM MQ integration, seems we need another properties setting on destination object. Reference Setting JMS Provider Options on the

xml to json conversion using AtlasMap

佐手、 提交于 2019-12-11 04:51:11
问题 While exploring the efficient conversion tool for xml to json, I find AtlasMap! (https://atlasmap.io) is a very useful. AtlasMap standalone application helps to formulate source to target mapping file. It supports transforming data to and from XML, JSON and Java objects. Most important thing, my project is heavily Apache camel depended and it supports camel component too. Though it is working fine for small payload, it is giving very bad performance for large payload for xml to json

Camel Transacted: MQ Session closed on every commit

邮差的信 提交于 2019-12-11 04:48:43
问题 I have: Camel route (transacted=true), consuming from an MQ Queue Using Spring's WebSphereUowTransactionManager Transactionality works Running on IBM Liberty But, I get this message: Setup of JMS message listener invoker failed for destination 'MY.QUEUE' - trying to recover. Cause: Local JMS transaction failed to commit; nested exception is com.ibm.msg.client.jms.DetailedIllegalStateException: MQJCA1020: The session is closed. The application attempted to use a JMS session after it had closed

Passing a Spring bean to a Camel component

ぐ巨炮叔叔 提交于 2019-12-11 04:48:26
问题 I have a custom component of type FooComponent which is added to the route by the following lines: from("foo://bar?args=values&etc") .bean(DownstreamComponent.class) ... FooComponent creates an endpoint and consumer (of type FooConsumer ) which in turn emits messages which get to the DownstreamComponent and the rest of the pipeline. For monitoring, I need the FooComponent consumer to call a method on a non-Camel object, which I'm creating as a Spring bean. The Camel pipeline is very

Apache Camel multicast, exception and Aggregation strategy

元气小坏坏 提交于 2019-12-11 04:47:14
问题 I define a complex route in which I had to to orchestrate different simple operations. from(cxfCartEndpoint).routeId("receiveCart") .to("log:com.sdmo.input?level="+LOG_LEVEL) .process(cartWSExtractProcessor) .to(loggingMesssagesPath+"?fileName=originalRequest${date:now:yyyyMMdd-HHmmss}.xml") .multicast(aggregationStrategy).stopOnException() .to("mock:doNothing","direct:copyItem","direct:XmlSave","direct:manageFinalResponse") .end() .to(loggingMesssagesPath+"?fileName=finalResponse${date:now

Consuming a RESTful web service using Apache Camel

人盡茶涼 提交于 2019-12-11 04:44:32
问题 I am trying to consume a restful Web service using camel. For that I am configuring dynamic endpoint url as the RESTful url is created at the runtime. Everytime I am checking if the particular endpoint url is registered as a route in my camel context using following method of CamelContext class. Endpoint hasEndpoint(String uri); In this case, if the endpoint is not registered then I add a route to my camel context using a custom Route Builder. I am using camel HTTP component for this. This is

Camel Bindy: how to ignore last columns

旧巷老猫 提交于 2019-12-11 04:26:12
问题 I have a CSV file, which I'm parsing using Bindy. I have created a CsvRecord class with all the DataField. Now, they have added new columns to the CSV file and I want Bindy to just ignore them. How do I do that? I know I could change the code adding the extra fields and just ignore them, but I don't want to have to release a new version of my software every time somebody decides to add extra columns to the input file. Thank you! 回答1: You may need to add one extra field, and then configure