I want to use filterFile inside my camel route.
I have route like this:
from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true&readLock=changed&delay=%s,
systemSettingsService.getSystemSettings().getSftpUserName(),
…
How can I get a trigger once my route completes processing a directory and its sub directories in camel ? Is there any way I can specify this in the route ?
I have following code:
//sftp
from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true",
sftpConfiguration.getUsername(),
sftpConfiguration.getHost(),
sftpConfiguration.getPort(),
…
I have pojo like this:
@Document(collection = "data")
public class DataPoint {
@Id
private String id;
private LocalDateTime createdDate;
....
}
in some code base I have following code:
@Autowired
private ProducerTemplate…
I want to iterate through a java arraylist passed as message header to a camel route via bean so that each string item which is basically an url can be passed as uri argument inside tag in camel route.
I am passing an array list as message header…
I have following camel configuration:
from("file://" + FTP_FILES + "?idempotent=true")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
throw new RuntimeException("test"); …
I have the following pipeline:
from("sftp:....")
.to("file://ftp_files");
I need to check mime type and stop it, in case if mime type is not as expected and send email.
I know a way to check mime…
Camel route:
from("seda:rest_upload")
.log(LoggingLevel.WARN, "Got new file from sftp with name ${header.filename}")
.to("file://rest_files?fileName=${header.filename}");
I see new files into rest_files but I don't…
I have org.springframework.web.multipart.MultipartFile in memory and I want to route it into filesystem.
For examplde for sftp I could write something like this:
public class DummyRoute extends RouteBuilder {
...
…
I have the following code base:
@Component
public class DummyRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
rest("/upload").post().to("file://rest_files");
}
@Bean
public…
I have the following code:
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.restlet.RestletComponent;
import…
First of all I installed sftp server locally and I can connect to it using bitwise ssh client:
my credentials:
login:tester
password:password
sftp folder looks like this:
And I wrote following code:
@PostConstruct
public void init() {
…
I am novice in spring-camel and apache camel overall
I've read http://camel.apache.org/file.html
and I want to listen file modifications.
Thus I wrote:
@PostConstruct
public void init() {
from("file:feed.txt")
.log("msg: ${body}")
…