# Spring cloud stream support solace

**URL:** <https://community.solace.com/t/spring-cloud-stream-support-solace/720>\
**Category:** Solace Event Broker\
**Tags:** spring-cloud-stream\
**Created:** [May 6, 2021, 2:08pm UTC](https://community.solace.com/t/spring-cloud-stream-support-solace/720 "2021-05-06T14:08:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akg17](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/akg17/32/934_2.png) [@akg17](https://community.solace.com/u/akg17)\
**Post date:** [May 6, 2021, 2:08pm UTC](https://community.solace.com/t/spring-cloud-stream-support-solace/720/1 "2021-05-06T14:08:15Z")

</div>

# 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 ?

---

<div class="post-metadata">

**Author:** ![giri](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/giri/32/877_2.png) [@giri](https://community.solace.com/u/giri)\
**Post date:** [November 17, 2021, 2:28pm UTC](https://community.solace.com/t/spring-cloud-stream-support-solace/720/2 "2021-11-17T14:28:03Z")

</div>

Hi @akg17 - apologies, somehow this got missed.

When this Supplier function (non-reactive) is used in a Spring Cloud Stream application, it will use a default poller provided by Spring Cloud Stream that will trigger the supplier every second by default.

> **[Preface](https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/spring-cloud-stream.html#_suppliers_sources)**

You can also inject this Supplier bean into your application and call the get method programmatically. It is a manual action.

Hope this helps.
