Re: Looking for advice or help on batching/queueing for a fairly simple route

2012-04-21 Thread Claus Ibsen
Hi I have logged a JIRA to allow the file/ftp components to not do eager limit. Then you can sort all the files beforehand, and then limit afterwards. https://issues.apache.org/jira/browse/CAMEL-5202 On Sun, Apr 15, 2012 at 10:06 AM, Claus Ibsen wrote: > On Sun, Apr 8, 2012 at 4:14 AM, Aaron D

Re: Load Balancer EIP

2012-04-21 Thread Claus Ibsen
On Sat, Apr 21, 2012 at 4:28 PM, Edwin wrote: > Hi Folks, > > I'm using the Load Balancer EIP in a current project with a sticky policy. > The load balancer receives messages and based on header values places the > message onto one of 5 jms queues. > > The "happy path" is: the same messages are co

Load Balancer EIP

2012-04-21 Thread Edwin
Hi Folks, I'm using the Load Balancer EIP in a current project with a sticky policy. The load balancer receives messages and based on header values places the message onto one of 5 jms queues. The "happy path" is: the same messages are continuously received throughout the day and messages are enq

Re: sun.misc.Unsafe.park CPU usage

2012-04-21 Thread Claus Ibsen
Hi Have you goggled ? http://www.docjar.com/docs/api/sun/misc/Unsafe.html You application is using concurrency with the mutlicast EIP pattern, and therefore threads is parked, while waiting for the multicasted messages to be fully processed. This is expected behavior. On Sat, Apr 21, 2012 a

Re: sun.misc.Unsafe.park CPU usage

2012-04-21 Thread Pham Ngoc Hai
The reason that I think this may have something to do with Camel is because, if you look at the call tree in the screen shoot, quite a number of org.apache.camel DefaultErrorHandler and RedeliveryErrorHandler methods are called before the final sun.misc.Unsafe.park. Any pointer would be reall

Re: How to handle success/failure when sending async InOnly to JMS?

2012-04-21 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 12:27 PM, Brook, James wrote: > I have a producer in a request handling thread that I am using to send > messages to a remote JMS (ActiveMQ) broker. I am using the asycSendBody > method on the producerTemplate. I discovered that if the broker goes down the > producer sta

Re: custom component synchronous processing

2012-04-21 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 8:32 PM, Jason Burkhardt wrote: > Ugh, tough time deciding a proper title for this one. > I have a custom component that basically implements a > com.sun.net.httpserver.HttpServer - as such, it is consumer only.  My > HttpConsumer component extends DefaultConsumer and basic

Re: Receiving NodeDeleted event using Camel's ZooKeeper component

2012-04-21 Thread Claus Ibsen
On Tue, Apr 17, 2012 at 5:44 PM, GLIMMERVEEN Arnoud wrote: > Hi, > > 1) Makes sense to do it this way. I am working on this and will attach a > patch to the JIRA issue when finished. > Great. > 2) Having the EventType from ZooKeeper's WatchedEvent attached to the > Exchange in a header would I

Re: camel-test-spring

2012-04-21 Thread Claus Ibsen
On Thu, Apr 19, 2012 at 3:20 PM, Willem Jiang wrote: > On Thu Apr 19 16:40:05 2012, Magnus Palmér wrote: >> >> It works when adding spring-context dependency 3.1.1 to my pom. > > > I just checked the code of camel-test-spring, if you are using the > CamelSpringJUnit4ClassRunner, you need to use th

Re: Gracefull shutdown timeouts due to NotifyBuilder blocks on context

2012-04-21 Thread Claus Ibsen
Hi I logged a ticket to get this fixed https://issues.apache.org/jira/browse/CAMEL-5200 Can you reproduce the issue every time? If so it would be nice if you could create an unit test so we can add that to the code base to test against regressions. On Fri, Apr 20, 2012 at 7:49 PM, Claus Ibsen