OtherwiseDefinition cannot be cast to org.apache.camel.model.ChoiceDefinition

2011-10-04 Thread heinrichheine
Hi again, still migrating my camel 2.5 route to 2.8.1. I ran into this problem this morning: When i try to start camel with this route configuration: [..] .choice() .when() .xpath( "count(//foo_write:bar) = 1", ns) .wireTap( "log:WriteRequestReci

Re: Messages being lost from route

2011-10-04 Thread Alistair Young
why would adding this: to this: org.apache.activemq.camel.component.ActiveMQComponent cause the broker to stop working? There are no transacted routes. The faster the messages come in, the more disappear. I have a very simple config that is guaranteed to lose 99/100 messages if the broker is

camel jpa tracer always set routeId as route1

2011-10-04 Thread atouret . nospam
Hi all, I'm working on the camel jpa tracer. It works fine but always produce a routeId field as 'route1'. However I initialied all my rouet Ids fields as following : http://camel.apache.org/schema/spring"; id="proxycontext" trace="true"> info.touret.exchange

Re: camel jpa tracer always set routeId as route1

2011-10-04 Thread Claus Ibsen
Hi What version of Camel are you using? On Tue, Oct 4, 2011 at 10:12 AM, wrote: > Hi all, > I'm working on the camel jpa tracer. > It works fine but always produce a routeId field as 'route1'. However I > initialied all my rouet Ids fields as following : > >  http://camel.apache.org/schema/spr

Re: camel jpa tracer always set routeId as route1

2011-10-04 Thread atouret . nospam
Hi, I'm using camel 2.8.1 Regards - Mail original - De: "Claus Ibsen" À: users@camel.apache.org Envoyé: Mardi 4 Octobre 2011 10:32:09 Objet: Re: camel jpa tracer always set routeId as route1 Hi What version of Camel are you using? On Tue, Oct 4, 2011 at 10:12 AM, wrote: > Hi all, >

Re: NotifyBuilder condition fails to match on an out/activemq endpoint

2011-10-04 Thread jason.parr
I took a while to test this but the new wereSentTo condition matches too eagerly, in your above example whenDone matches on any received message on any endpoint and then the first wereSentTo match forces the whole predicate to be true. What if you want is to wait for a number of messages just like

Re: camel jpa tracer always set routeId as route1

2011-10-04 Thread Claus Ibsen
On Tue, Oct 4, 2011 at 10:36 AM, wrote: > Hi, > I'm using camel 2.8.1 > Its fixed in 2.9.0 https://issues.apache.org/jira/browse/CAMEL-4168 > Regards > > - Mail original - > De: "Claus Ibsen" > À: users@camel.apache.org > Envoyé: Mardi 4 Octobre 2011 10:32:09 > Objet: Re: camel jpa tra

Re: camel jpa tracer always set routeId as route1

2011-10-04 Thread atouret . nospam
Thanks for your response. Regards Alexandre - Mail original - De: "Claus Ibsen" À: users@camel.apache.org Envoyé: Mardi 4 Octobre 2011 11:02:01 Objet: Re: camel jpa tracer always set routeId as route1 On Tue, Oct 4, 2011 at 10:36 AM, wrote: > Hi, > I'm using camel 2.8.1 > Its fixed i

Re: OtherwiseDefinition cannot be cast to org.apache.camel.model.ChoiceDefinition

2011-10-04 Thread David Karlsen
Try end() or choiceEnd() Den 4. okt. 2011 09:30 skrev "heinrichheine" følgende: > Hi again, > still migrating my camel 2.5 route to 2.8.1. > I ran into this problem this morning: > When i try to start camel with this route configuration: > > [..] > .choice() > .when() > .xpath( "count(//foo_write:

http never times out

2011-10-04 Thread Marco Westermann
Hi, I think I found a bug in camel 2.8 I have the following code: public void configure() { from ("activemq:newOrders") to("http://server:port/path/?bridgeEndpoint=true&httpClient.soTimeout=12";) } this code terminates after 2 mins with a timeoutException (which is OK) now

Re: 'mvn eclipse:clean eclipse:eclipse' not being happy with ${jetty-version}

2011-10-04 Thread bvahdat
Hi Daniel, that was EXACTLY the fix I was looking for since weeks... No wonder that now maven is happy like me as well ... Thanks alot Regards, Babak -- View this message in context: http://camel.465427.n5.nabble.com/mvn-eclipse-clean-eclipse-eclipse-not-being-happy-with-jetty-version-tp4806907

Re: http never times out

2011-10-04 Thread Claus Ibsen
On Tue, Oct 4, 2011 at 11:22 AM, Marco Westermann wrote: > Hi, > > I think I found a bug in camel 2.8 > > > I have the following code: > > public void configure() { >    from ("activemq:newOrders") > >  to("http://server:port/path/?bridgeEndpoint=true&httpClient.soTimeout=12";) > } > > this co

Re: http never times out

2011-10-04 Thread Marco Westermann
Hi Claus, thank you for your response. But wouldn't it show the log "Doing redelivery of message" after 2 mins? regards, Marco Am 04.10.2011 12:52, schrieb Claus Ibsen: On Tue, Oct 4, 2011 at 11:22 AM, Marco Westermann wrote: Hi, I think I found a bug in camel 2.8 I have the following c

information about the inflight exchange(s) when shutting down

2011-10-04 Thread Marco Crivellaro
Is there any way to collect some information (exhange.properties / headers) of any inflight exchange while shutting down camel context? I'd need this in order to track down an issue I have with a camel based application. I am using camel 2.8.0 -- View this message in context: http://camel.465427

RE: Camel CXF generic producer before 2.8.0

2011-10-04 Thread Andrei Shakirin
Hi William, Just short answers: > If you do not specify both service class and WSDL in the endpoint, the > validation is bypassed it was my first try, but it seems to be not the case for Camel 2.7.3: if I do not specify WSDL location and serviceClass I either receive an exception: "java.lang.

Re: Camel CXF generic producer before 2.8.0

2011-10-04 Thread William Tam
Correct. It is not the case for 2.7.3. Prior to 2.8.0, either WSDL or service class must be provided. On 10/04/2011 10:25 AM, Andrei Shakirin wrote: Hi William, Just short answers: If you do not specify both service class and WSDL in the endpoint, the validation is bypassed it was my fir

Re: Messages being lost from route

2011-10-04 Thread Alistair Young
I think camel + tomcat is a non starter. The same config works perfectly in activemq 5.5.0 standalone with camel. Used embedded in a webapp in tomcat 6, only the first message makes it through the route. The rest vanish. Alistair -- mov eax,1 mov ebx,0 int 80h On 4 Oct 2011, at 08:43, Alis

Custom behavior on route shutdown

2011-10-04 Thread Jeff Segal
I have an application which dynamically creates and removes routes in a camel context. I'd like to be able to invoke an onShutdown method when routes are removed so that I can perform some cleanup tasks. I've read http://camel.apache.org/graceful-shutdown.html but wasn't able to find a good solutio

Re: information about the inflight exchange(s) when shutting down

2011-10-04 Thread Claus Ibsen
On Tue, Oct 4, 2011 at 3:44 PM, Marco Crivellaro wrote: > Is there any way to collect some information (exhange.properties / headers) > of any inflight exchange while shutting down camel context? > I'd need this in order to track down an issue I have with a camel based > application. > The defaul

Re: information about the inflight exchange(s) when shutting down

2011-10-04 Thread Marco Crivellaro
Claus Ibsen-2 wrote: > > The default in flight registry only stores number of in flights. > You can implement a custom in flight registry and include more details. > Is there a reference in the documentation on how to create a custom inflight repository? Claus Ibsen-2 wrote: > > We wanted a

Re: Exception not getting caught and multiple consumers getting the same message

2011-10-04 Thread Claus Ibsen
Could it be the spring-ws client returns a SOAP Fault and not an exception? Camel error handler only reacts upon exceptions. There is a flag you can enable on the route, handleFault=true, that turns SOAP faults into exceptions, and allow Camel error handler to react then. On Mon, Oct 3, 2011 at 2

Re: Custom behavior on route shutdown

2011-10-04 Thread Claus Ibsen
On Tue, Oct 4, 2011 at 5:11 PM, Jeff Segal wrote: > I have an application which dynamically creates and removes routes in > a camel context. I'd like to be able to invoke an onShutdown method > when routes are removed so that I can perform some cleanup tasks. I've > read http://camel.apache.org/gr

RecipientList-AggregateTask thread creation

2011-10-04 Thread Marco Crivellaro
I have a route with a recipientList parallel processed and than streamed to an aggregation strategy: .recipientList(header("recipientListHeader").tokenize(",")) .parallelProcessing().timeout(3) .executorService(customThreadPoolExecutor) .streaming().aggregationStrategy(new RecipientAggregation

Re: RecipientList-AggregateTask thread creation

2011-10-04 Thread Claus Ibsen
Its the JDK that allocated threads from the thread pool to execute the tasks from the work queue. See also details here http://camel.apache.org/threading-model.html On Tue, Oct 4, 2011 at 6:00 PM, Marco Crivellaro wrote: > I have a route with a recipientList parallel processed and than streamed

Re: Custom behavior on route shutdown

2011-10-04 Thread Jeff Segal
Thanks Claus. I created https://issues.apache.org/jira/browse/CAMEL-4514 for this issue. I took your advice and suggested adding the callback to RoutePolicy, especially since it already has an onInit(Route) method. On Tue, Oct 4, 2011 at 11:51 AM, Claus Ibsen wrote: > On Tue, Oct 4, 2011 at 5:11

ProducerTemplate batch commits?

2011-10-04 Thread aedwards
Hi all, Using Camel 2.8.1 I am using a POJO producing bean to publish messages. http://camel.apache.org/pojo-producing.html This all works well. However I occasionally have significant volume (approximately 600k in my case). Due to the high volume, I am doing some performance testing.

Re: ProducerTemplate batch commits?

2011-10-04 Thread David Karlsen
Hi! Interested in the same (although - at the consuming side at 1st hand). Missing batch functionality is a big weakness IMHO in camel - or rather the underlying Spring stuff which does JMS. You might want to contact one of the persons which held this talk: http://javazone.no/incogito10/events/Ja

Re: ProducerTemplate batch commits?

2011-10-04 Thread aedwards
I am using ActiveMQ. Same, also interested on the consuming side. But the more urgent one for me is producing at the moment. The link doesn't work for me, get this guinee pig show up. ;-) Is it released under Apache license? have they considered donating it back? -- View this message in cont

Re: ProducerTemplate batch commits?

2011-10-04 Thread David Karlsen
I http://twitter.com/#!/davidkarlsen asked them on twitter: http://twitter.com/#!/runepeter 2011/10/4 aedwards > I am using ActiveMQ. Same, also interested on the consuming side. But > the > more urgent one for me is producing at the moment. > > The link doesn't work for me, get this guinee p

RE: SOAP Headers and spring-ws

2011-10-04 Thread Damian Harvey
I've added an issue with a patch : https://issues.apache.org/jira/browse/CAMEL-4515 Regards, Damian. -Original Message- From: Richard Kettelerij [mailto:richardkettele...@gmail.com] Sent: Friday, 23 September 2011 5:34 AM To: users@camel.apache.org Subject: Re: SOAP Headers and spring-w

Re: Camel JBI Interaction

2011-10-04 Thread diwakar
Hi, >> Don't use JBI if you can avoid using it. Since we have used lof of JBI, we want to know if the interworking between JBI and Came possible. Please let us know. With Best Regards, Diwakar -- View this message in context: http://camel.465427.n5.nabble.com/Camel-

Re: Camel JBI Interaction

2011-10-04 Thread Claus Ibsen
On Wed, Oct 5, 2011 at 6:55 AM, diwakar wrote: > Hi, > >             >> Don't use JBI if you can avoid using it. >             Since we have used lof of JBI, we want to know if the > interworking between JBI and Came possible. Please let us know. > Yes using the SMX Camel JBI component http://cam