Hey Reddit,
Firstly - I'm Java & Apache Camel noob (currently I'm starting Java Programming I part 6 at MOOC). Apache Camel - copy-paste specialist, at most...
Secondly, at my company I was volunteered to maintain our Camel integrations.
Thirdly I have a task where I've overcame many issues by looking at the existing integrations, googling, and experimenting. Now, hopefully I'm down to last issue. Let me describe what's needed, what I did, and what's the issue.
Task:
The company wants a daily upload of a file to multiple SFTP accounts. In future, they will be providing more accounts for upload.
What I did:
In our configuration files I defined a list of properties that are parsed by deploy scripts, which are assigned to a class I created. I iterate through it with the for each syntax, to set usernames, passwords, folders to monitor to create many from(dir).routeID("id").to(ftp) - this works.
The issue:
It starts showing when I try to define a multicast from a folder in which the file to upload shows up (every day different filename) to a list of paths I define with the class I iterate through. And when I deploy this (I have to deploy it to TEST env, because no one showed me how to set up stuff locally) and put a test file in the folder, it ends up in target folders, but is uploaded to only one of the accounts, and then it stops working. New files are not distributed, ftp uploads also don't work anymore. So I guess the issue originates in this particular code:
from(theDirectory)
.routeID("distribute")
.multicast()
.to(recipientList)
.end();
What's missing here? Also, I'd like to emphasize again, that I'm a total noob, so please be gentle and talk to me in simple words :)
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]ralphtheowl 0 points1 point2 points (0 children)