Solace Community is getting a facelift!

On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.

We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!

Pull message from a queue on an adhoc basis

smpapas
smpapas Member Posts: 19
edited October 2021 in General Discussions #1

Hi, I have a requirement to use spring cloud stream binder for solace to connect and pull messages from a queue. The application should not listen to that queue continuously instead it should try to pull the message based on a scheduled time interval. Could you pls help me how to achieve this with minimal java code?
Thanks

Comments

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 973 admin

    Hi @smpapas,

    @UshShukla actually created a sample polling consumer using Spring Cloud Stream here. Can you take a look and see if that gives you what you're looking for?

    Hope that helps!

  • smpapas
    smpapas Member Posts: 19
    edited October 2021 #3

    The trigger is based on some business logic so I need to try it out and I will update soon

This Month's Leaders

This Week's Leaders