🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Spring cloud stream support solace

akg17
akg17 Member Posts: 76

Give the autogenerated binding a friendlier name

spring.cloud.stream.function.bindings.supplyLoan-out-0=output
what would be the equivalent of this in solace configuration ?

===================================================
Supplier loanSupplier = () -> {
Loan loan = new Loan(UUID.randomUUID().toString(),
names.get(new Random().nextInt(names.size())),
amounts.get(new Random().nextInt(amounts.size())));
log.info("{} {} for ${} for {}", loan.getStatus(), loan.getUuid(), loan.getAmount(), loan.getName());

  return loan;
};

Does this supplier triggers event on application startup or we need to call it using the queue because if we call it then same message will go to listener as well how to trigger it ?

Answers