Ich mag würde diese Logik in einer Apache Camel Java-Anwendung entschlüsseln: ReadFromActiveMq Dateien und sende sie Route Direct Während existsFilesInFolder { retrytoLoadThemForever() // obwohl Fehler zu lenken erscheint -> manuelle Aktion erforderlich } DirectRoute-Nachrichten verbrauchen.eine Apache Camel Route eines Ordnerinhaltes abhängig Suspending
in Java Ich habe dies gemacht:
onManualDataReceivedException().maximumRedeliveries(-1)
from("file:" + recoverableErrorsFolder +"?noop=true").to("bean:processManualFilesDatabean");
//If there is an error in manual process i throw ManualDataReceivedException
from ("direct:DirectRoute")
.to("bean:processDirectQueueBean");
private OnExceptionDefinition onManualDataReceivedException() {
return onException(ManualDataReceivedException.class);
}
Wie kann ich direkt Pause: Verbrauch Direct wenn Dateien in recoverableErrorsFolder Ordner?
Das hat funktioniert. Danke – user4919313