Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
How do I start a Spring Integration DSL Poller from a generic MessageSource

One of our Spring Integration DSL flows is meant to be a simple poller based on a cron expression. Normally you would configure a PollableChannel implementation (e.g. QueueChannel) or by using an InboundAdapter (e.g. FTP, HTTPS, S3 etc.) to process inbound messages which have a polling property.

In our case, we won't have any inbound Messages to process. We simply want to start the SI DSL based IntegrationFlow on a nightly basis preferably using a cron expression. Is there any way that we can start a SI Flow with a poller or "fake" a message based on a cron job?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

IntegrationFlows
        .from(() -> new GenericMessage<>(""),
                e -> e.poller(p -> p.cron("0 0 0 * * ?")))

Since there is no something like NullMessage or Message with null payload, we just send a "fake" message with empty string as payload. You can just ignore that message downstream.

The first Lambda is implementation of the MessageSource<T> exactly what you mentioned about (S)FTP, S3, JDBC etc.

It will be still the same Inbound Channel Adapter, a-la equivalent for the <int:inbound-channel-adapter ref="">

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda