apache-camel

Not getting the newest information from a table (recipientList)

别说谁变了你拦得住时间么 提交于 2020-06-28 06:34:19
问题 I am using Apache Camel with different routes running inside a CONTAINER. I am having trouble with this route: getSalesNumber that obtains the sale number for a specific person. The problem is that this route reads the content of a table called TABLE_AGENT_MAIL and if i inserted a new row inside that table the route wont read it and i have to restart the container in order to make it work. This is the route: <route id="getSalesNumber"> <from uri="direct:getSalesNumber"/> <setHeader headerName

Error while starting JBoss - Could not read provided index: /content/<<warFile>>r/WEB-INF/lib/camel-api-3.0.1.jar/META-INF/jandex.idx

只愿长相守 提交于 2020-06-26 08:06:12
问题 In our project, we are using Spring Boot 2.2.4 and Apache Camel 3.0.1 and deploying the application as a war file in JBoss EAP 7.2.0. I am getting the following error while deploying the application in JBoss 2020-03-11 20:35:59,822 ERROR [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0002: Could not read provided index: /content/<>/WEB-INF/lib/camel-api-3.0.1.jar/META-INF/jandex.idx Similarly I am getting error on other jandex.idx files in other locations. Can anyone please

Apache Camel with IBM MQ

别来无恙 提交于 2020-06-24 11:56:10
问题 Hello has anyone ever used Camel with IBM's MQ. We are looking at possibly using the two products together but have no example of the two products working together. 回答1: The best I have been able to get is documented below, illustrated as a Spring XML application context that itself hosts the CAMEL context and routes. This sample works with the IBM native MQ JCA-compliant resource adapter v7.5, CAMEL 2.16, Spring core 4.2. I have deployed it in Glassfish, Weblogic, and JBoss EAP7 servers. The

Apache camel alternative in .net?

一世执手 提交于 2020-06-24 11:09:09
问题 Apache Camel provided the sort of configurable architecture which allows web service messages to be determined dynamically during run time for web services that are hosted in Java environment. I was wondering whether there is a similar/equivalent framework for applications written in c# and hosted in .Net/SharePoint environment? 回答1: A bit late to this party, but might be of use to some people... This wiki page has a list of alternatives - or it lists Camel as one of the options - https://en

.when().jsonpath(myClass.getJsonPathExpressions().get(),true) not working if json path expression is null or empty

两盒软妹~` 提交于 2020-06-17 23:04:46
问题 from("somegcpchannel"). .choice() .when().jsonpath(myClassObject.getJsonPathExpressions().get(),true)//true will suppress exception if the path does not exist" The problem with this camel jsonpath component is that if myClassObject.getJsonPathExpression() is null or empty it throws an exception.Hence I am forced to put some dummy json path to get it working. How can I first check if the myClassObject.getJsonPathExpressions() if not null only then process the json path expression.All in one

.when().jsonpath(myClass.getJsonPathExpressions().get(),true) not working if json path expression is null or empty

安稳与你 提交于 2020-06-17 22:58:36
问题 from("somegcpchannel"). .choice() .when().jsonpath(myClassObject.getJsonPathExpressions().get(),true)//true will suppress exception if the path does not exist" The problem with this camel jsonpath component is that if myClassObject.getJsonPathExpression() is null or empty it throws an exception.Hence I am forced to put some dummy json path to get it working. How can I first check if the myClassObject.getJsonPathExpressions() if not null only then process the json path expression.All in one

Apache Artemis client fail over discovery

吃可爱长大的小学妹 提交于 2020-06-17 15:26:32
问题 I am using Apache Artemis V2.12.0, started two instance of broker in two VM's broker.xml (myhost1) [ broker.xml of myhost2 is similar only the port I used was 61616] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"> <core xmlns="urn:activemq:core"> <bindings-directory>./data/bindings</bindings-directory> <journal-directory>./data

How to use Jetty from Spring Boot with Camel Jetty Component?

淺唱寂寞╮ 提交于 2020-05-18 05:25:33
问题 I have a Spring Boot application with Camel Endpoints routes using camel jetty component as a gateway. @Component public class StartEcommerce extends RouteBuilder { @Override public void configure() throws Exception { restConfiguration() .host("localhost") .port(8085); rest("/rest/v1") .post("/order") .to("direct:ecommerceRestRoute") .post("/cancelEnrollment") .to("direct:cancelEnrollmentRestRoute"); // other routes ... } } Everything works fine if I put the jetty component to execute in port

Problem connecting to Python mail server from Java Camel application

时光怂恿深爱的人放手 提交于 2020-05-17 08:46:35
问题 I have a simple email server implemented using the Python language aiosmtpd package (https://github.com/aio-libs/aiosmtpd). I also have an Apache Camel application with a route that attempts to get mail from the server. I have been able to successfully send mail to the server, and it is being saved to a directory. However I'm running into a problem when attempting to get mail from the server. The error message from the Camel application is: 2020-04-29 10:51:54.476 WARN 17916 --- [/localhost

Apache Camel: What is difference between Message Translator and Content Enricher with Example?

南楼画角 提交于 2020-04-18 12:35:16
问题 I hit database get 10 employees; on base of each employee i hit another database and fetch some information and concatenate the same. As per my understanding, It can be done either in .process() or in .enrich() (using aggregator) .to("jdbc:masterdata?outputClass=com.diavry.integrator.Employee") .to("log:?level=INFO&showBody=true") .process(e -> { List<Employee> eiEmployees = (List<Employee>) e.getIn().getBody(List.class); for (Employee employee : eiEmployees) { PreparedStatement statement =