Validation on build time of camel component fails when component has some getter/setters

2015-12-09 Thread Roman Vottner
Hi there, we use Camel 2.16.0 and are currently developing a Camel component and on trying to build an artifact using „mvn clean install“ or „mvn clean package“ the build fails due to: Missing component documentation for the following options: … as the component class defines a getter and

Re: Validation on build time of camel component fails when component has some getter/setters

2015-12-09 Thread Claus Ibsen
Add javadoc to the setter methods or both of them so you *actually* document your component options what they are intended for. On Wed, Dec 9, 2015 at 2:01 PM, Roman Vottner wrote: > Hi there, > > we use Camel 2.16.0 and are currently developing a Camel component and on > trying to

Re: Having issues with Multicast to Aggregation ...

2015-12-09 Thread jtoepfer
So after digging into the documentation for the last 2 days. There is a parameter called routeEmptyResultSet, and it's set to false. This could be the problem, but I'm not aware to set this? Looking at the code doesn't seem really obvious. Some direction would be helpful if i'm on the right

Dynamically created CamelContext not visible in fuse console

2015-12-09 Thread rwijngaa
Hi, I got 2 camel contexts defined in xml and a bunch of others i created dynamically with: CamelContext camelContext = new SpringCamelContext(applicationContext); The point is, when doing "camel:context-list" in the JBoss Fuse 6.2 console, is only get to see the 2 (fixed) ones. In hawtio i

Using Stream Cache With Apache Camel

2015-12-09 Thread kikou1984
I m using stream caching with this example below. I have three routes. First, I used the split streaming with a token "\n", reading a file splitted by line. Then I made a business process :

Camel Aggregator: Using up the complete heap

2015-12-09 Thread ganga_camel
Hi, I have a camel route which will split the file based on the newline charterer and writes the data into 3 different files based on some business logic. The file is 135MB in size. While running the route, the observation is the initial processing is pretty good however as the records get

Re: Dynamically created CamelContext not visible in fuse console

2015-12-09 Thread Claus Ibsen
You need to create them as osgi camel context, and do a bunch of osgi initialization to make that work. Its not so easy to do but see in camel-core-osgi source code On Wed, Dec 9, 2015 at 1:35 PM, rwijngaa wrote: > Hi, > > I got 2 camel contexts defined in xml and

Re: Create multiple SQLComponent

2015-12-09 Thread Ramiro Pugh
Hi Alexis, I'm not sure if you can have multiple SQL Components. Camel has a registry of components (what I've understood) and when I'd tried to use two components in the same context I had only just one, this is (I think) for the way that they registry and why is so easy to auto discovery a

Re: Camel Aggregator: Using up the complete heap

2015-12-09 Thread contactreji
Yea . I have noticed that camel aggregators slow down the throughput in case of heavy volume files like GB sizes. Is there any alternative component in camel which can be used in place of aggregator. I am talking about use cases which takes in 10 GB files which are new line tokenized and after

Re: Dynamically created CamelContext not visible in fuse console

2015-12-09 Thread rwijngaa
ok, tried that. CamelContext camelContext = new OsgiSpringCamelContext(getApplicationContext(), Activator.getBundleContext()); ((OsgiSpringCamelContext)camelContext).setName(contextId); The OsgiSpringCamelContext constructor is calling OsgiCamelContextHelper.osgiUpdate(this,

Re: Having issues with Multicast to Aggregation ...

2015-12-09 Thread Claus Ibsen
You can check unit tests they often test the various options. On Wed, Dec 9, 2015 at 2:17 PM, jtoepfer wrote: > So after digging into the documentation for the last 2 days. There is a > parameter called routeEmptyResultSet, and it's set to false. This could be > the

Re: Dynamically created CamelContext not visible in fuse console

2015-12-09 Thread Claus Ibsen
Yeah that's the guy that triggers some osgi code that enlist the camel context in the osgi service registry at that bundle, which is what the karaf camel command uses. See also how camel-scr does some stuff as it does also manually do some osgi initialization

Re: Dynamically created CamelContext not visible in fuse console

2015-12-09 Thread Antonin Stefanutti
You need the following piece of code to be executed so that your Camel contexts get published as OSGi services: context.getManagementStrategy().addEventNotifier(new OsgiCamelContextPublisher(BundleContextUtils.getBundleContext(getClass(; Then your Camel contexts will be visible from Camel

Re: Using Stream Cache With Apache Camel

2015-12-09 Thread kikou1984
When i m trying to get the cache it returns null StreamCache cache = exchange.getIn().getBody(StreamCache.class); Do you have an idea how i can retrieve the StreamCache ? Thxs -- View this message in context:

Re: Setting timeout in Springboot

2015-12-09 Thread raffi
Figured it out, bean id="shutdown" class="org.apache.camel.impl.DefaultShutdownStrategy" -- View this message in context: http://camel.465427.n5.nabble.com/Setting-timeout-in-Springboot-tp5774874p5774876.html Sent from the Camel - Users mailing list archive at Nabble.com.

Shutdown hook in FatJarRouter - Springboot

2015-12-09 Thread raffi
I'm using Camel 2.16.0 with springboot 1.2.6-RELEASE, the app is packaged and executed using FatJarRouter. My routes run properly, but I'm having an issue with shutdown. I can shutdown Camel using setShutdownNowOnTimeout() via JMX, that's not a problem. But when shutting down Springboot using

How to configure correctly Error Handler for redelivery

2015-12-09 Thread Michele
Hi everyone, I configure my routing and redelivery policy as follow but it doesn't work: application/json

Re: Shutdown hook in FatJarRouter - Springboot

2015-12-09 Thread raffi
After some more digging, here's what I found. Invoking stop() on camel context shuts down all routes gracefully as per the log, but two problems I'm seeing after routes are shut down is (I believe) the cause for JVM not shutting down: #1) ActiveMQ connection remains open #2)

Multi-threaded UDP server with netty4?

2015-12-09 Thread mkitchin
Hi there, We have a moderately unusual use-case we're having issues implementing. - Java 8, Camel 2.15.2, Felix w/Camel DSL running in Docker - UDP server based on camel-netty4 component - Receiving small (<100 bytes), stateless messages - Sending small, per-message responses The problem is

Setting timeout in Springboot

2015-12-09 Thread raffi.onjava
Hi, In Springboot, what is the config parameter name for setting timeout in DefaultShutdownStrategy from application.properties? #application.properties camel.timeout = 10

Re: Using Stream Cache With Apache Camel

2015-12-09 Thread Claus Ibsen
The splitter will split the file and each of those splitted sub messages do not have the entire content, but only that chunk of the message. If you want to read the entire file again, then dont use the splitter, but just do a from file -> to process, and you can access the file using java.io.File