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
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
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
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
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
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
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
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
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.
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
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
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
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
/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
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
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
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
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
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
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
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
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 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
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
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
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
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.
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.
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
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
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
31 matches
Mail list logo