Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

230
Vistas
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?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

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="">

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda