Re: [Aggregator] oldExchange always null ?

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 8:58 AM, Olivier.Roger wrote: > > Thanks for your help claus, > > I fact the issue was in the aggregationStrategy. > I transformed the message and the correlationId was lost. > > Setting back the id solve the issue. Glad you found the issue. Actually the custom code you do

FULL java source example with JavaDSL ?

2010-09-07 Thread Ben Stover
I am now searching for a while for a FULL example of an Java DSL app. On all webpages about Camels JavaDSL the instructions are reduced to the "core" statements e.g. from("direct:start") .to("velocity:MailBody.vm") .to("file://target/subfolder"); But I would like to have a FULL out.of-the-b

Re: FULL java source example with JavaDSL ?

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 9:21 AM, Ben Stover wrote: > I am now searching for a while for a FULL example of an Java DSL app. > > On all webpages about Camels JavaDSL the instructions are reduced to the > "core" statements e.g. > > from("direct:start") >  .to("velocity:MailBody.vm") >  .to("file://ta

Re: Using Camel-ftp to write file with windows-1252 encoding

2010-09-07 Thread Roland Villemoes
Hi Willem, Seems like this works! Thanks a lot (again ) Roland -- View this message in context: http://camel.465427.n5.nabble.com/Using-Camel-ftp-to-write-file-with-windows-1252-encoding-tp2739750p2805738.html Sent from the Camel - Users mailing list archive at Nabble.com.

[Aggregator] completionPredicate evaluated only once ?

2010-09-07 Thread Olivier.Roger
Hello, I still have some issues with the aggregator component. According to my tests the completionPredicate is evaluated only once the first message is received. After that the method is not executed anymore. Is there anything that could provoke this behaviour ? I put here under the trace of m

Re: [Aggregator] completionPredicate evaluated only once ?

2010-09-07 Thread Claus Ibsen
The Aggregator have been overhauled in Camel 2.3 onwards and its better. http://camel.apache.org/aggregator2 So if possible upgrade to Camel 2.4. On Tue, Sep 7, 2010 at 9:30 AM, Olivier.Roger wrote: > > Hello, > > I still have some issues with the aggregator component. > According to my tests t

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Andreas Asmuss
Hi I'm using Camel 2.4. -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-not-finishing-tp2642233p2805758.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [Aggregator] completionPredicate evaluated only once ?

2010-09-07 Thread Olivier.Roger
I see. Unfortunately, I am stuck with 2.2 at the moment. It there any known issue with the completionPredicate in version below 2.3 ? Thank for your help, Olivier -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-completionPredicate-evaluated-only-once-tp2805740p28

Re: [Aggregator] completionPredicate evaluated only once ?

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 9:57 AM, Olivier.Roger wrote: > > I see. > > Unfortunately, I am stuck with 2.2 at the moment. > It there any known issue with the completionPredicate in version below 2.3 ? > You cannot mix and match the different completion options (eg batch, timeout, predicate) etc. in 2

Re: [Aggregator] completionPredicate evaluated only once ?

2010-09-07 Thread Olivier.Roger
I see, That explains my observations. I will switch to 2.3+ as soon a possible. Thanks for your explanations on this matter -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-completionPredicate-evaluated-only-once-tp2805740p2805774.html Sent from the Camel - Users m

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 9:48 AM, Andreas Asmuss wrote: > > Hi > > I'm using Camel 2.4. Could you create a ticket in JIRA because the fix is in the pollEnrich EIP pattern and not in ConsumerTemplate. > -- > View this message in context: > http://camel.465427.n5.nabble.com/ConsumerTemplate-not-f

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Andreas Asmuss
Do you know what the issue is, what should I call it? "ConsumerTemplate not finishing", or is it just that it's not deleting or? -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-not-finishing-tp2642233p2805803.html Sent from the Camel - Users mailing list archi

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 10:40 AM, Andreas Asmuss wrote: > > Do you know what the issue is, what should I call it? "ConsumerTemplate not > finishing", or is it just that it's not deleting or? ConsumerTemplate return body should complete UoW beforehand And then make a link to this conversation, eg

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Andreas Asmuss
https://issues.apache.org/activemq/browse/CAMEL-3108 -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-not-finishing-tp2642233p2805815.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Multiple Context

2010-09-07 Thread Ashwin Karpe
Hi, The answer is yes... What is more, you need not create 50 routes as you have in your example. You can also do it as Since the destinations remain the same (i.e bean:msgParser followed by bean:msgProcessor), you can club all the from topic destinatio

Re: Multiple Context

2010-09-07 Thread Ashwin Karpe
Hi, BTW for doing is completely in Spring you will need to instantiate a Spring based Camel Context as shown below. Cheers, Ashwin... === http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:

PubSub with multiple responses

2010-09-07 Thread Markus Wolf
Hi there, I would like to ask if there is a possibility to have multiple responses in a pubsub setup? Or is this only possible to send the responses to another queue/topic and listen to that? I could not find any example on the website. Regards Markus Wolf -- Markus Wolf, Developer markus.w...@s

Re: PubSub with multiple responses

2010-09-07 Thread Ashwin Karpe
Hi, It is possible to be both a publisher and subscriber on the same topic. If you are trying to apply a request/response based communication model in a pub/sub or queueing environment, then you need to use Correlation Id's to match the responses to a given request. More importantly, you need to

Re: PubSub with multiple responses

2010-09-07 Thread Markus Wolf
Ok, to give some more information on this I script what we want to do: We have a scenario in which we want a message spread out and handled by multiple clients (pubsub). Each of this clients could respond to the message and the requesting part should aggregate all responses and handle upon the res

Re: Camel-QuickFIX jar issues

2010-09-07 Thread Charles Moulliard
Hi, The quickfix-all jars file 1.5.0 have been published in this repository (http://repo.fusesource.com/maven2-all/org/quickfixj/quickfixj-all/1.5.0/). The pom of the project camel-quickfix has been updated so you can use this component with camel version 2.5-SNAPSHOT. Regards, Charles -- View

Re: Camel-QuickFIX jar issues

2010-09-07 Thread Bengt Rodehav
That sounds very good. I will have a look at it. When I looked at it the last time (1-1,5 years ago) it had a lot of problems which caused me to create my own Camel integration to QuickFix/J. Do you know if it has improved since then? I was really glad a while back when I heard that Steve Bate (fr

[REMINDER] - Camel webinar tomorrow and next week

2010-09-07 Thread Claus Ibsen
Hi Just a reminder that we at FuseSource is hosting free webinars about Camel. I will be the presenter tomorrow, introducing Camel. And next week Jonathan Anstey will talk about Camel deployments. I wrote information about this at my blog, where there is a link how to register if you want to atte

Network of Brokers, Consumers not getting messages from queue

2010-09-07 Thread Naira & Kobo
Hi, I have followed the article on activemq website on how to set up network of brokers. My brokers are able to talk to themselves using the DiscoveryNetworkConnector. Below is the output of my activemq log: Network connection between vm://default#16 and tcp:///broker2ip:61616(default) has bee

Re: Some camel questions?

2010-09-07 Thread Ashwin Karpe
Hi, The Xpath processor in Camel is namespace-aware. If you use DSL you can do the following Namespaces ns = new Namespaces("c", "http://acme.com/cheese";); from("direct:start").filter(). xpath("/c:pers...@name='James']", ns). to("mock:result"); For more details, please

Camel route and transaction

2010-09-07 Thread Hossein
Hello, I have a camel route client that is defined as follows Does the above route be enforces a transaction on the entire route? If I place a request message in the request/folder and for some reason, myService,

PoolSize on from()

2010-09-07 Thread Ron Smith
I have my RouteBuilder doing this: from(tibco) .threads(readerThreads) .to("direct:localqueue"); from("direct:localqueue") .threads(processThreads) .bean(MyParser.class, "parseMessage") .bean(MyPersistor.class, "persistRecord"); If I set processThread > 20, I get the following exc

Re: Camel route and transaction

2010-09-07 Thread Claus Ibsen
On Tue, Sep 7, 2010 at 8:01 PM, Hossein wrote: > > Hello, I have a camel route client that is defined as follows > >         >             >             >             >             >             >         > > Does the above route be enforces a transaction on the entire route? If I > place a reques

Re: ConsumerTemplate not finishing?

2010-09-07 Thread Claus Ibsen
Hi Ah I took a look at your code and of course you have a catch-22 situation. You consume a file and want it as a File instance (which is just a handle for a file). and then you want that file deleted. This means your file handle would point to a deleted file. What you could do is to return the