Scheduled FTP polling -again

2010-11-30 Thread mikaelfj
Hi, I know there are several posts on this subject - but I need to have the following approach qualified. We need to fetch files from FTP and want to control when and how often this is done. (I'm aware that there is some upcoming feature to provide a DSL for the FTP component to control this, b

XML to FixedLength

2010-12-06 Thread mikaelfj
Hi, I'm in the process of transforming XML to FixedLength, by - using jaxb to unmarshal XML to Java - using ? to transform Jaxb classes to bindy-annotated classes - using bindy to marshal BindyFixedLengthDataFormat to fixed length records. I've been unable to locate a smart way of going from t

Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Hi, We are delivering files to an FTP server with the URI option tempPrefix=.uploading and nothing set for the fileExists option, i.e. it will default to override of an existing file. However, if uploading, say, "file.txt" twice, the second upload will fail with a rename error - as the renaming

Re: Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Hi - I looked through the release notes but couldn't see this mentioned specifically - but I will give a later release a go - thanks /Mikael -- View this message in context: http://camel.465427.n5.nabble.com/Problem-renaming-existing-file-in-FTP-tp3307670p3307746.html Sent from the Camel - User

Re: Problem renaming existing file in FTP

2010-12-16 Thread mikaelfj
Just tried with 2.4 and 2.5 - they both seem to have the same problem as 2.2. At the second upload of the file to the FTP server, they throw this exception: org.apache.camel.component.file.GenericFileOperationFailedException, message:Cannot rename file from: rename/.uploadingTest.REN to: rename/

Bindy fixed length - length attribute and truncate

2010-12-20 Thread mikaelfj
Hi, We are using the bindy component to create fixed length value files, version 2.4. My expectations were, that when defining the length of a field using the @DataField annotation, then bindy would pad chars if my data was shorter than the length (and it does) and that it would truncate my data

Re: Bindy fixed length - length attribute and truncate

2010-12-21 Thread mikaelfj
I'll add a jira for it - so far we are ensuring the strings are of proper length before setting them on the annotated class. I don't think it should be an option not to clip the string. If an option is added to control clip/no-clip, you are allowing the generated fixed-length format to be sort of

Re: Problem renaming existing file in FTP

2011-01-27 Thread mikaelfj
Hi, Got a chance to look into this again. We still have the problem described, but just on a few destination servers which all seems to be windows machines(?). I have fetched the 2.4 branch of camel-ftp to find out why it does not work, since the unit test you refer to in your previous post do

Re: Problem renaming existing file in FTP

2011-01-30 Thread mikaelfj
Hi, Hmmm - we found that this doesn't work when camel is runing on unix and the ftp-server is windows: If existing is aa/bb/cc\test.txt and OS (where camel runs) is windows then normalizePath(existing) = aa\bb\cc\test.txt (i.e. fil separators are normalized) and stripPath(normalizePath(existin

BindyFixedLengthDataFormat trimming lines

2011-02-07 Thread mikaelfj
Hi, We are running Camel 2.4 and are to unmarshal FixedLength lines to objects using Bindy. The FLV record is defined with: @FixedLengthRecord(length = 128, paddingChar = ' ') I.e. 128 character long with spaces as default paddingchar. The last "field" in the line is defined as: @DataField(pos

Re: BindyFixedLengthDataFormat trimming lines

2011-02-07 Thread mikaelfj
Hi, Hmm - it looks like the trim() is removed in the 2.6 release so I'll see if I can give it a try. /Mikael -- View this message in context: http://camel.465427.n5.nabble.com/BindyFixedLengthDataFormat-trimming-lines-tp3374142p3374157.html Sent from the Camel - Users mailing list archive at N

Unit testing from jms endpoint

2014-06-16 Thread mikaelfj
Hi, We are in the process of extending an integration from getting its inbound messages from a single queue to being able to get the inbound messages from two queues. The setup of the routes is straightforward by having from(queue1)... and from(queue2)... However, when running, one or both of th

Re: Unit testing from jms endpoint

2014-06-17 Thread mikaelfj
Hi Claus, Ok - I can see that I might be able to use inceptors to simulate the error. However, they won't let me intercept the route so that the from(queue) - will fail when polling it - right? I will have to send a message to the endpoint in order to trigger the interceptor, which will then al

Problem with csv, bindy and quotes

2013-02-18 Thread mikaelfj
Hi, We are currently using Camel 2.9.1 and are facing an issue with Bindy, CSV and quotes. We are getting a CSV file with ; as delimiter and containing text like: ;Book "This is the book title"; I.e. the quoted text is just a part of the textual value and not intended for quoting delim

Scheduling routes with RoutePolicy

2011-03-29 Thread mikaelfj
Hi, I'm in the process of using CronScheduledRoutePolicy to schedule a route to start and stop - i.e. to only be polling the from endpoint in a certain time-interval - e.g. the below should ensure it only polls the from endpoint one hour each day between 16-17: CronScheduledRoutePolicy policy = n

Re: Scheduling routes with RoutePolicy

2011-04-04 Thread mikaelfj
Hi, I've been trying it out using the noAutoStartUp() - which seems to make it work, i.e. let the route begin in a stopped state and then having a cron-schedule to start it at a given point in time. However, I need to have it to start and then stop a few hours later, but this does not work. If I

Re: Scheduling routes with RoutePolicy

2011-04-05 Thread mikaelfj
Hi, Took a look at the source for 2.7 and I can see that this particular method has been changed as a result of CAMEL-3575 - which is exactly the problem that we experience. I'll make the same change to 2.6 to see if that fixes the problem. /Mikael -- View this message in context: http://camel

Aggregator clarification

2012-01-04 Thread mikaelfj
Hi, We are in the process of using the Aggregator component in our integration, and I need some clarification of whether my understanding of its persistence is correct. We are reading files from a folder structure like this: user1/inv1/.. user1/inv2/.. where all files found in e.g. user1/inv1 h

Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
Hi, We are using the aggregator EIP to collect a set of files from which we are to generate other documents. In order not to loose any of the aggregated documents, we are using the aggregator with the HawtDB as aggregation-repository. This has been running flawless for a few months, but two week

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
We are using Camel 2.6 and hawtdb-1.5.jar and hawtbuf-1.2.jar -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-and-HawtDB-DB-just-seem-to-grow-tp5576730p5576856.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
I'm stuck on Camel 2.6, but I can get hawtdb 1.6 and hawtbuf 1.4, which, judging from my unit-tests, seems to work with Camel 2.6. Are you aware of any issues that are related to my problem, that is resolved in hawtdb 1.6? Best regards Mikael -- View this message in context: http://camel.465427

FTP polling seems to stop(?)

2012-05-10 Thread mikaelfj
Hi, We have a bunch of integrations that polls FTP servers for files. We have experienced that from time to time the integrations stop fetching files from the FTP servers. There are no indications of errors in the log files etc. It just seem to stop polling the files - if the integration is resta