How to download files fomr a remote web site

2016-12-07 Thread bbuzzard
I would like to download a file from a remote web server (NOT an FTP server). I can easily do this with wget, but I would like to do it with Camel. I need to preserve the lastModified and fileName values. Would someone please suggest an approach that can do this? I tried the following, but it n

Re: XPath Content Based Routine Fails when urn xmlns is specified in base element.

2016-06-08 Thread bbuzzard
Thanks to souciance's reply I was able to figure out what I was doing wrong. test2.xml defined the default namespace to an URN. In my CBR I had specified an xpath that had no namespace at all. When I added the URN namespace to my camelContext and then prefixed the XPath element with the namespac

Re: XPath Content Based Routine Fails when urn xmlns is specified in base element.

2016-06-08 Thread bbuzzard
Thank you for your response, but I think you missed the point. The http://camel.apache.org/xpath.html talks about namespaces that use URLs not URNs. My problem seems to be specifically with namespaces that use URNs. I need to know if there is a way for the CBR to ignore the default URN namespace

XPath Content Based Routine Fails when urn xmlns is specified in base element.

2016-06-08 Thread bbuzzard
I am using JDK1.7 with apache-activemq-5.13.2 which is using canel-core-5.13.2. I am trying to route documents based on the value of an XML element. My test route should routes documents to the "when" folder when the author's name is "Bob" and it routes documents to the "otherwise" folder when t

Re: Howto route to a remote FTP work folder then move to the remote FTP final folder

2016-01-11 Thread bbuzzard
Super answer Greg. I just wasn't sure that the property would work on an FTP component. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Howto-route-to-a-remote-FTP-work-folder-then-move-to-the-remote-FTP-final-folder-tp5776148p5776154.html Sent from the Camel - Use

Re: Howto route to a remote FTP work folder then move to the remote FTP final folder

2016-01-11 Thread bbuzzard
Thanks for the quick response Greg. Let me see if I can clarify what has to happen. The remote FTP site (only one site) has two sub folders: one for staging the file called "/work" and one for production called "/prod". The remote FTP admin wants me to transfer our local file to the remote "/wor

Howto route to a remote FTP work folder then move to the remote FTP final folder

2016-01-11 Thread bbuzzard
Would someone explain to me how to set up a Spring route that routes a file to a remote FTP work folder and once the file has been delivered it is moved to the remote FTP final (production) folder? -- View this message in context: http://camel.465427.n5.nabble.com/Howto-route-to-a-remote-FTP-wo

Camel hanging up

2015-08-20 Thread bbuzzard
Yes I know there are newer versions and we're planning on updating to the latest version, but this code is in production and we can't change it just yet. I'm using ActiveMQ-Camel-5.5.1 in a star topology. A large number of files, approximately 100 at 100 MB average, are being dequeued and dropped

Howto set up an NT FTP Client in Spring

2015-06-24 Thread bbuzzard
I can do this in java, but I would like to set up a route in camel.xml that pulls files from an NT FTP Server. I believe all I have to do is create a new FTPClient instance that uses the NTFTPFileEntryParser and add that ftpClient instance to the route url. Here's what I set up in camel.xml.

Howto correctly use camel ftp siteCommand

2013-09-24 Thread bbuzzard
I have a Linux ftp script that connects to a remote server and then it executes: quote SITE LRECL=112 RECFM=FB BLKSIZE=6048 If I understand correctly siteCommand provides post connection command execution so I initially tried a camel route that sets the siteCommand=LRECL=112\nRECFM=FB\nBLKSIZE=60

RE: How can FTP Component connect to FTP Server via GXS Proxy

2013-08-16 Thread bbuzzard
Yes I'm talking about GXS and I'm disappointed to learn that I have to create a custom bean. I can use Linux's FTP command from a script to connect to GXS and download the files I need. I was hoping that the FTP component in camel could be used to perform the same task as the script. From: wo

Howto set up keep-alive on an FTP Consumer

2013-07-10 Thread bbuzzard
I've encountered a problem with an FTP Client using passive mode where the Control Port is being closed by a network device between the host and client. Some individuals suggested that I try using active mode and that seemed to work, but I notice an intermittent problem with files not being pulled

Howto add routes to CamelContext on the fly.

2012-07-31 Thread bbuzzard
I'm creating a java class that I want to add the the ActiveMQ-Camel libs that will periodically query a database for routes and add or remove them from the active camel context. The camel.xml file contains some default routes that I use all the time, but I will like to add new routes to the same c

RE: How can FTP Component connect to FTP Server via GXS Proxy

2012-06-04 Thread bbuzzard
/camel/component/file/remote/ On Fri, Jun 1, 2012 at 8:31 AM, bbuzzard <[hidden email]> wrote: > I have an application that needs to connect to a customer's ftp server via > the GXS proxy server. I can do this with a simple Linux FTP script, but I > would like to do it with Ca

How can FTP Component connect to FTP Server via GXS Proxy

2012-06-01 Thread bbuzzard
I have an application that needs to connect to a customer's ftp server via the GXS proxy server. I can do this with a simple Linux FTP script, but I would like to do it with Camel Spring. The ftp script simply does ftp, open ip, user 'username password' (to authenticate at GXS), a second user 'us

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-11-16 Thread bbuzzard
I guess what I'm realling asking is does the "readLockCheckInterval" have any control over the polling interval or is that strictly controlled by the "delay" parameter? -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-avoid-consuming-zero-byte-files-from-a-remote-FTP-se

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-11-16 Thread bbuzzard
Claus it just seems like using both "delay" and "readLockCheckInterval" are redundant. I agree that the "delay" controls the polling interval, but in a way doesn't "readLockCheckInterval" affect polling too? -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-avoid-consu

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-11-15 Thread bbuzzard
I just got back to this project and I tried the readLockCheckInterval and it works fine. I am curious about if I need the "delay" parameter if I'm using the "readLockCheckInterval". I was using a "delay=15000, readLockCheckInterval=3 and readLockTimeout=6". I thought this would check the

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-10-14 Thread bbuzzard
Thanks Claus. I think I know the answer to this, but it's been a while since I checked. readLock=changed only samples one file at a time when comparing file sizes and last modified values from one poll to the next - is that correct? -- View this message in context: http://camel.465427.n5.na

Re: How do I avoid consuming zero byte files from a remote FTP server?

2011-10-12 Thread bbuzzard
Thanks. I tried it and it almost worked. The problem with the filter is that the empty file on the remote FTP server is deleted. -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-avoid-consuming-zero-byte-files-from-a-remote-FTP-server-tp4896550p4896647.html Sent fro

How do I avoid consuming zero byte files from a remote FTP server?

2011-10-12 Thread bbuzzard
I would like to avoid pulling empty (0 byte) files from a remote FTP server, but I'm running into problems. I'm connecting to a remote FTP Server. I have recursive=true and I am using the AntPathFilter to select specific files in specific folders for downloading to my local directory. Once and

No consumers available for direct endpoint on start.

2011-09-12 Thread bbuzzard
I'm receiving files from an ActiveMQ queue, directing the files to a direct endpoint which in turns sends the files back to a output ActiveMQ queue. This works great and I haven't had problems until last Friday when I made a modification to the camel.xml file. When I restarted ActiveMQ I checked

Can I use Spring to inject values into Custom RouteBuilder that's loaded via packageScan

2011-08-31 Thread bbuzzard
Can I use Spring to inject values into a Custom RouteBuilder that's loaded via packageScan? I would like to pass in a string that changes depending on the physical machine the custom RouteBuilder is loaded on. If this is possible could you provide a simple example showing how to do this within th

Re: What are the differences between using preMove and readLock=rename

2011-08-30 Thread bbuzzard
When I first read your response I guess I missed the part about preMove happens after the readLock has determined it's ok to consume the file. So if readLock=none then it might be possible for the preMove to move a file that was still being written to. Is that correct? -- View this message in co

Re: What are the differences between using preMove and readLock=rename

2011-08-30 Thread bbuzzard
Except for the fact that readLock=rename does a rename in the current folder and preMove basically does a rename (move) to a different folder there seems to be no real difference between the two. readlock=rename is performed before any other operation is performed, but so is preMove. I was hoping

What are the differences between using preMove and readLock=rename

2011-08-29 Thread bbuzzard
Both of these functions seem like they are doing basically the same thing. What are the advantages and disadvantages of using one method verses the other? -- View this message in context: http://camel.465427.n5.nabble.com/What-are-the-differences-between-using-preMove-and-readLock-rename-tp474

Camel FTP Thread Died

2011-06-06 Thread bbuzzard
Environment: ActiveMQ-5.4.2-fuse-01-00. jdk1.6.0_25 Linux (Lenny) Problem: I have several threads pulling down files from a remote FTP server. These threads run great for a few weeks then one of them dies. My logs rolled over before I realized I the thread was gone so I missed the exception.

Re: Passing filename to EXEC

2011-01-09 Thread bbuzzard
I'm sorry, I thought I had replied to your response. I'm using Camel 2.5. -- View this message in context: http://camel.465427.n5.nabble.com/Passing-filename-to-EXEC-tp3294381p3334101.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Passing filename to EXEC

2010-12-06 Thread bbuzzard
I created a route in Java that passed the filename to a Camel Exec function like this: public void configure() throws Exception { from("file:c:/aaa/FromZip") .setHeader("CamelExecCommandArgs", simple(" ${file:name}")) .to("exec:c:/aaa/Scripts/test.bat"); } and this worked perfectly

Re: Trying to consume files with a special filename extension

2010-04-20 Thread bbuzzard
t;exclude" parameters. I noticed that the expression the Test file used to include any file that ended in txt was ".*txt". Since I actually wanted any files that have an extension of ".log" I changed my expression to ".*\.log" and it worked. I'm still not su

Trying to consume files with a special filename extension

2010-04-20 Thread bbuzzard
I have a drop folder that contains files with many different extensions. I would like to route files with a particular extension into a queue. It looks like the parameter "include" does exactly what I want, but I'm having trouble specifying any regex that will work. In my test example I creat