apache-camel

Redis serialization prefixed with extra string

落爺英雄遲暮 提交于 2019-12-07 09:28:28
问题 Camel-Redis's serializer is prefixing extra characters to message key. When I checked the DB, the message key shows something like.. "\xac\xed\x00\x05t\x00\x11test150827171118" As you can see, the string "\xac\xed\x00\x05t\x00\x11" is prefixed for key "test150827171118" . I tried two patterns, Firstly, I set the serializer in the registry directly. Registry.put("serializer", new StringRedisSerializer()); Second pattern is by setting in the RedisTemplate first. Then putting the redis template

Throttling in Camel

人走茶凉 提交于 2019-12-07 08:13:25
I am trying to figure out throttling concepts in Camel. I have already seen Camel's route policy , but this works for number of inflight exchanges. My route is following: routeBuilders.add(new RouteBuilder() { @Override public void configure() throws Exception { from("rabbitmq://127.0.0.1:5672/abc?queue=a&username=XXX&password=XXX&autoAck=false&durable=true&exchangeType=direct&autoDelete=false") .to("rabbitmq://127.0.0.1:5672/abc?queue=b&username=XXX&password=XXX&autoAck=false&durable=true&exchangeType=direct&autoDelete=false"); } }); Now my use case is that I want to transfer say 2000

Camel http4 and url-encoded passwords being interpreted as separate arguments

前提是你 提交于 2019-12-07 06:33:42
问题 We've got an Apache Camel (2.13.2) app that uses http4 to communicate with a webserver, using NTLM for auth. The endpoint is defined as (pseudo): ... .to("http4://thegreat.server.com/uri?authUsername=" + user + "&authPassword=" + pass + "&authenticationPreemptive=true&authMethod=NTLM&authDomain=DOMAIN&authHost=host") .to("otherEndpoint"); This works well as long as the pass variable contains "non-special" chars. However, if the pass contains for example "abcd&def" - Camel will intepret the

Camel Blueprint - Gave up waiting for Service exception

不羁岁月 提交于 2019-12-07 04:21:47
问题 I have a bunch of unit tests that test some routing/camel implementation in Blueprint. These test run absolutely fine 95% of the time however every so often (1 in 20 or so) I get a Camel Runtime exception: I am running the latest version of Fabric8 with Camel 2.12 java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext) at org.apache.camel.test.blueprint.CamelBlueprintHelper.getOsgiService(CamelBlueprintHelper.java:240) at org.apache.camel.test

Administration and Monitoring of Apache-Camel routes in ServiceMix

孤街浪徒 提交于 2019-12-07 03:25:16
问题 Being a user of Camel and ServiceMix I frequently need to monitor those tools for development purposes. I mainly use JConsole to access MBeans from ServiceMix and Camel. It gives a few really helpful metrics for an ESB developer. I also use karaf (web)console to track my route and bundles status. Looking around StackOverflow I found an interesting link that explains how to setup Hyperic HQ for ServiceMix 4: Monitoring Servicemix with Hyperic HQ. Are they other tools you would consider worthy

Using Apache Camel CMIS with Sharepoint 2013

三世轮回 提交于 2019-12-07 00:53:57
问题 I can successfully access Sharepoint 2013 AtomPub interface from Chrome REST clients, the following URL gives me the file I want: http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?getContentStream&objectId=4-512 However, using the same URL in the Camel CMIS route gets me HTTP 302 (File not found) and diverts me to an error page. The route I tried is: from("cmis:http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee

Camel CXF POJO mode using Java DSL

跟風遠走 提交于 2019-12-07 00:35:55
问题 I have a pre-existing web service "connect" (SOAP) I would like to call without using the Swing framework if possible. I have followed the contact first development generating my java files using cxf/wsdl2java tool. I wish for the userName and password to be extracted from the java object and placed in a SOAP object then sent onot my localhost web service. When sending the Connect object as a body to the "direct:start" I get an exception... Caused by: java.lang.IllegalArgumentException: Get

difference between embedded and standalone activemq broker

浪尽此生 提交于 2019-12-06 22:30:55
I am using Spring for my application. I am wondering what differences there is between "embedded" ActiveMQ and "stand-alone" ActiveMQ. If I run ActiveMQ embedded, does thing mean remote clients can still connect up? Is my understand correct that embeded ActiveMQ means that ActiveMQ will start automatically when I start my Spring application, or is there some other meanings to it? For example Let's say I have deployed one application in system-A and deployed the same application in system-B.in the application I have configured embedded ActiveMQ broker through spring xml files with broker url as

Apache Camel HTTPS4 Basic Authentication

倖福魔咒の 提交于 2019-12-06 16:23:08
问题 Does Camel-Http4 supports Basic Authentication? Followed this and other posts Camel http4 download file using Basic authentication over Https I am using camel 2.17.3 version. using camel-http4 component. The route sends a https4 multipart request to a REST endpoint . The REST service is behind the siteminder. Have truststore/ketstore/cert all setup and it works fine, just sending basic auth is causing trouble. Using postman i was able to call REST services with basic auth. However, all the

Spring Integration: TCP Client/Server opening one client connection per server connection

帅比萌擦擦* 提交于 2019-12-06 15:40:15
I'm trying to implement a TCP client/server application with Spring Integration where I need to open one TCP client socket per incoming TCP server connection. Basically, I have a bunch of IoT devices that communicate with a backend server over raw TCP sockets. I need to implement extra features into the system. But the software on both the devices and the server are closed source so I can't do anything about that. So my thought was to place middleware between the devices and the server that will intercept this client/server communication and provide the added functionality. I'm using a