Http Connection Pooling in Camel

2016-03-10 Thread Debraj Manna
Hi, I am using Camel as an Orchestration Engine. clients sends HTTP request <-> CAMEL code < HTTP Req- > external server(s) I am using HTTP4 Component (with default settings) for making HTTP Requests to external server. I have quite a few http backends. Right now the way we are making h

inconsistently getting org.apache.camel.CamelExecutionException while writting file with beanio

2016-03-10 Thread Pallavi G S
I have a route which fetches data from databse,then call processor which writes the data to a file using beanio. Below is my code to do so. ${in.body.size} > 0

Re: Camel dozer component unable to map custom function on field with null value

2016-03-10 Thread Narsi Nallamilli
Ranx, Thank you for your help. I my case the solution doesn't apply. The field value being null is causing the issue. Suppose I have Input as below the following is the output data. Even though I have mapped Input schema a field to output schema a field, if the input field value is null, dozer is

Re: Camel+Spring Boot route with 2 ActiveMQ brokers on different servers

2016-03-10 Thread pjagwani
I think you need to set up Qualifier for your beans so your Spring context can uniquely identify each of your connection factories. http://docs.spring.io/spring/docs/current/spring-framework-reference/html/beans.html#beans-autowired-annotation-qualifiers HTH. -- View this message in context:

Camel+Spring Boot route with 2 ActiveMQ brokers on different servers

2016-03-10 Thread jrp256
I've set up a route that reads from queue A, modifies the message, and writes to queue B. Queue A is on one server, queue B on another, so I've configured 2 connection factories with different names, consumeConnectionFactory and publishConnectionFactory. I can't get past the error: Caused by: or

Re: CXF cross cutting concerns

2016-03-10 Thread Ranx
Sergey, I could do it on CXF except I'm using Camel Blueprint and the CXF implementations there. All the XML schemas and components are Camel specific as are the binding to the camel bean. In fact, that's one of the distinct downsides to using Camel/blueprint. One gets a lot of magic but beco

Re: CXF cross cutting concerns

2016-03-10 Thread Ranx
Christian, Thanks. I'll look into that. Right now all my services are defined in separate bundles and exported to the registry and have interfaces with REST/SOAP annotations that I expose via an API gateway. That works fairly well but it obviously couples the deployment. Part of the problem is

Camel kafka route - performance slowing down

2016-03-10 Thread madkak
Hi, I have written camel Spring DSL route which consumes from JMS queue and publishes it to a topic. This route is working fine in general but when there is a consistent load for longer time, the route performance is slowing down from ~6k msgs/min to ~600 msgs/min. Below is my JMS configurations.

Re: Camel Test Endpoint Error

2016-03-10 Thread Claus Ibsen
Hi Yeah got the any order fixed https://issues.apache.org/jira/browse/CAMEL-9697 And will work on the expression On Thu, Mar 10, 2016 at 5:29 PM, Quinn Stevenson wrote: > I would defiantly like to add an expression to split the messages - that > would be very very useful. > >> On Mar 10, 2016,

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
I would defiantly like to add an expression to split the messages - that would be very very useful. > On Mar 10, 2016, at 9:27 AM, Claus Ibsen wrote: > > On Thu, Mar 10, 2016 at 5:18 PM, Quinn Stevenson > mailto:qu...@pronoia-solutions.com>> wrote: >> Thank you for the quick fix - I’m building

Re: Camel Test Endpoint Error

2016-03-10 Thread Claus Ibsen
On Thu, Mar 10, 2016 at 5:18 PM, Quinn Stevenson wrote: > Thank you for the quick fix - I’m building 2.17-SNAPSHOT now so I can work > with this some more. > > I agree completely on the first case. I actually assumed that’s what would > happen for some reason. Is the component currently limite

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
Thank you for the quick fix - I’m building 2.17-SNAPSHOT now so I can work with this some more. I agree completely on the first case. I actually assumed that’s what would happen for some reason. Is the component currently limited to one message per file? I hadn’t thought about the second - m

Re: Camel Test Endpoint Error

2016-03-10 Thread Claus Ibsen
One use case it may be nice would be to allow to use 1 file, but each row in the file is a expected message. In case you test with 1000s of messages. Also maybe being able to specify that the order can be random. I think today they are in the order the consumer fetches the messages. On Thu, Mar 1

Re: Camel Test Endpoint Error

2016-03-10 Thread Claus Ibsen
Hi I have reproduced your issue and logged a ticket https://issues.apache.org/jira/browse/CAMEL-9696 And also work on improving so those options you pass on the file endpoint are passed on. Today they are dropped. On Thu, Mar 10, 2016 at 4:56 PM, Quinn Stevenson wrote: > Claus - > > Sorry - I m

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
Claus - Sorry - I missed one part of your comment the first time. For this test, yes - I only expect a single value, and it’s out in a file. What I’d like to be able to do is put a bunch of values in that file and have the MockEndpoint setup with the correct expected message bodies. I actual

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
Here’s a single Camel test that shows the issue. package com.pronoia.camel; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Test; public class JavaTestRouteTest extends CamelTestSupport { @Override protected RouteBuilde

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
Forgot to mention I’m using v2.16.2. Also, here’s the full blueprint and test class http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/blueprint"; xsi:schemaLocation="

Re: Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
The route is defined in blueprint and I’m running the test using CamelBlueprintTestSupport - does that make a difference? > On Mar 10, 2016, at 8:04 AM, Claus Ibsen wrote: > > Hi > > Ah that test component is never really used. So the idea is that you > have a file in that directory, that has

Re: Camel Test Endpoint Error

2016-03-10 Thread Claus Ibsen
Hi Ah that test component is never really used. So the idea is that you have a file in that directory, that has the value "My Value" which the test component will load and compare agains the incoming message. But yeah seems like the file -> string conversion somehow fails. You just run this from

Camel Test Endpoint Error

2016-03-10 Thread Quinn Stevenson
I’m trying to get the sample from the documentation for the Test Component working ( http://camel.apache.org/test.html ), but I keep getting a type conversion error. Here’s the route definition: Here’s the test method: @Test public void testRoute(

Re: CXF cross cutting concerns

2016-03-10 Thread Christian Schneider
I have searched for a solution to the problem you described for a long time now and finally found a good concept. Cross cutting concerns can be solved using the TopologyManager in the Remote Service Admin spec (CXF-DOSGi). One duty of the TopologyManager is to watch all registered OSGi services

Re: CXF cross cutting concerns

2016-03-10 Thread Sergey Beryozkin
Hi Can you please start a CXF users thread ? Thanks, Sergey On 09/03/16 16:26, Ranx wrote: I have a client who wants to use deployable microservice bundles with REST/SOAP APIs. Not a problem of course as it works very well. The issue is that I'm getting a lot of boilerplate replication across