Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
Do you prefer me opening a new conversation/ticket? -- View this message in context: http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-file-name-in-the-uri-tp478938p2856347.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 9:31 AM, Marco Crivellaro wrote: > > Do you prefer me opening a new conversation/ticket? Can you provide more details what your problem is? Its not clear to me. > -- > View this message in context: > http://camel.465427.n5.nabble.com/FTP-creating-connections-for-every-f

Re: [HawtDB] Monitoring?

2010-09-28 Thread Olivier.Roger
I ask on the HawtDB maillinglist and it seems you are right : http://groups.google.com/group/hawtdb/browse_thread/thread/145f0a207bebad23 -- View this message in context: http://camel.465427.n5.nabble.com/HawtDB-Monitoring-tp2855385p2856357.html Sent from the Camel - Users mailing list archive

Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Hi I want to build a route where I poll for all files in a directory every 24 hours, then aggregate the files in different groups and send them. So far I have used an aggregator as below, but now a requirement to have a maximum of for instance 100 messages per aggregated message has arisen. Any i

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 11:13 AM, Andreas A. wrote: > > Hi > > I want to build a route where I poll for all files in a directory every 24 > hours, then aggregate the files in different groups and send them. So far I > have used an aggregator as below, but now a requirement to have a maximum of > f

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Hi Yeah but the problem is that I only poll once per 24 hours (with a simple delay on the file endpoint) and I want all the messages to be picked up everytime. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp28564

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 11:29 AM, Andreas A. wrote: > > Hi > > Yeah but the problem is that I only poll once per 24 hours (with a simple > delay on the file endpoint) and I want all the messages to be picked up > everytime. > -- Ah then use a completion predicate instead and just indicate true at

[Aggregator] CompletionTimeout as property

2010-09-28 Thread Olivier.Roger
Hello ! I am trying to use the new property placeholder from Camel 2.4 I used it to set the completionTimeout attribute from the aggregator component. Schema validation seems to be failling. Here is the error : cvc-datatype-valid.1.2.1: '{{aggregator.timeout}}' is not a valid value for 'inte

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
When the route is used to deliver several files (fileName option) via FTP a new connection to the given FTP server is created for each file and left opened unless we set the disconnect option to true. In my honest opinion this is leading to a lot of time being spent to connect and disconnect each

Re: [Aggregator] CompletionTimeout as property

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 11:59 AM, Olivier.Roger wrote: > > Hello ! > > I am trying to use the new property placeholder from Camel 2.4 > > I used it to set the completionTimeout attribute from the aggregator > component. Schema validation seems to be failling. > > > > Here is the error : > > cvc-d

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 12:06 PM, Marco Crivellaro wrote: > > When the route is used to deliver several files (fileName option) via FTP a > new connection to the given FTP server is created for each file and left > opened unless we set the disconnect option to true. > > In my honest opinion this i

RE: FTP creating connections for every file name in the uri

2010-09-28 Thread Marco Crivellaro
I can't use the same endpoint URI if the files to be deployed have different names. Pooled FTP clients still leave opened the issue of having to close the connection each time. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: martedì 28 settembre 2010 12:24 To:

Re: FTP creating connections for every file name in the uri

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 1:51 PM, Marco Crivellaro wrote: > I can't use the same endpoint URI if the files to be deployed have different > names. > Pooled FTP clients still leave opened the issue of having to close the > connection each time. Set the filename as a header instead of the uri. >

RE: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http

2010-09-28 Thread patrice.godard
Hi, FYI I had this same error message with CXF and it was because I was not initializing CXF correctly. I fixed it by initializing my CXF web service clients via tags in my spring beans definition file. I'm not using my CXF clients in Camel routes but in "regular" bundles, which are in turn use

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Alright cool. I put the logic for this in my AggregationStrategy, works fine. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp2856427p2856629.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [Aggregator] CompletionTimeout as property

2010-09-28 Thread Claus Ibsen
Hi I created a ticket to see if we can hack / tweak this to make it better https://issues.apache.org/activemq/browse/CAMEL-3171 On Tue, Sep 28, 2010 at 1:21 PM, Claus Ibsen wrote: > On Tue, Sep 28, 2010 at 11:59 AM, Olivier.Roger wrote: >> >> Hello ! >> >> I am trying to use the new property p

Exception details

2010-09-28 Thread Steve.Hedges
Hi This is probably very straightforward, but I've scoured the docs and can't find an answer. Is it possible to get details of the actual exception that occurred in an error handler? So far, I can see how to access the message that caused an error (using the $body variable) but not the except

Re: Exception details

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 2:49 PM, wrote: > Hi > > This is probably very straightforward, but I've scoured the docs and can't > find an answer. > > Is it possible to get details of the actual exception that occurred in an > error handler?  So far, I can see how to access the message that caused a

RE: Exception details

2010-09-28 Thread Steve.Hedges
I'll get the book... >From the info on that page, is it correct to assume that it is impossible to >get at the exception info from the Spring XML config? All I want to do is to >log the actual exception to a file. Steven Hedges IT - Credit Booking Derivs -Original Message- Fro

Re: Exception details

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 3:26 PM, wrote: > I'll get the book... > > From the info on that page, is it correct to assume that it is impossible to > get at the exception info from the Spring XML config?  All I want to do is to > log the actual exception to a file. > The simple language can access

RE: Exception details

2010-09-28 Thread Steve.Hedges
I've bought the book! Steven Hedges IT - Credit Booking Derivs 10 The South Colonnade Canary Wharf, London E14 4PU, United Kingdom 02031344655 x44655 -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: 28 September 2010 14:33 To: users@camel.apache.org Sub

Re: Exception details

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 3:46 PM, wrote: > I've bought the book! > Ah great. Then Jonathan and I earned 50 cent today. I hope the book will help and inspire you with your current endeavor with Camel. Good luck. > > > Steven Hedges > IT - Credit Booking Derivs > > 10 The South Colonnade > Canary

RE: Exception details

2010-09-28 Thread Steve.Hedges
You realise I am going to have to get my 50 c of help now :-) Is it possible to use a route as an error handler? I would like to be able to log an exception, raise an SMS and push the message onto a queue for later reprocessing. We are trying to keep all of our config in the Spring XML. (Con

Re: Exception details

2010-09-28 Thread Claus Ibsen
On Tue, Sep 28, 2010 at 5:27 PM, wrote: > You realise I am going to have to get my 50 c of help now :-) > > Is it possible to use a route as an error handler?  I would like to be able > to log an exception, raise an SMS and push the message onto a queue for later > reprocessing.  We are trying

RE: Exception details

2010-09-28 Thread Steve.Hedges
Claus I am having difficulty with this as I am using the Spring XML config approach. The errorHandler is defined outside of the camelContext while the routes are defied inside the camel context. At the point at which the errorHandler is instantiated it cannot see the error route. So I have:

Re: Exception details

2010-09-28 Thread Claus Ibsen
You need to set the errorHandlerRef attribute on either the or the in which the error handler should apply. On Tue, Sep 28, 2010 at 6:14 PM, wrote: > Claus > > I am having difficulty with this as I am using the Spring XML config > approach.  The errorHandler is defined outside of the camelC

Re: How to change directory while using sftp component

2010-09-28 Thread Lorrin
I just bumped into the same problem. I'm running 2.5-SNAPSHOT. SftpConsumer 2010-09-28 10:31:28,094 -- ERROR -- Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot retrieve file: tmp/mult/dummy-5.log] org.apache.camel.component.file.GenericFileOperationFailedE

statisticsBrokerPlugin with camel error

2010-09-28 Thread watcher
I've raised a query on the ActiveMq forum that could be a camel issue. http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-error-td2716123.html#a2716123 http://activemq.2283324.n4.nabble.com/statisticsBrokerPlugin-error-td2716123.html#a2716123 I've followed the instructions based on

Re: How to change directory while using sftp component

2010-09-28 Thread watcher
What folder does userid from sftp://use...@dev_server map to on your sftp folder? and does it have a folder tmp/camel_ftp_test ie. userid maps to c:\\myfolder Then you would have a folder c:\\myfolder\\tmp\camel_ftp_test also check that you have the correct permission set up for that user, t

Re: How to change directory while using sftp component

2010-09-28 Thread Lorrin
Hi, thanks for the reply. It sounds like you're saying I should use a URI relative to the user's home directory and then it will work. That's true and I'm using that as a work-around for now. But it seems like a bug to me that I am constrained to polling within the user's home directory. If I sp

sftp -> seda yields GenericFileOperationFailedException during GenericFileOnCompletion move processing

2010-09-28 Thread Lorrin Nelson
Is there a reason that an sftp->seda route would fail? In both examples below, uri is like "sftp://t...@host/mult?include=.*.log&move=.done&password=** This works as expected: from(uri).to("direct:foobar"); from("direct:foobar").log("${body}"); But this fails. It does log the

Re: How to change directory while using sftp component

2010-09-28 Thread Claus Ibsen
On Wed, Sep 29, 2010 at 12:25 AM, Lorrin wrote: > > Hi, thanks for the reply. > > It sounds like you're saying I should use a URI relative to the user's home > directory and then it will work. That's true and I'm using that as a > work-around for now. > > But it seems like a bug to me that I am co