# Spring cloud stream solace binder connection

**URL:** <https://community.solace.com/t/spring-cloud-stream-solace-binder-connection/1271>\
**Category:** General Discussions\
**Created:** [May 20, 2022, 12:15pm UTC](https://community.solace.com/t/spring-cloud-stream-solace-binder-connection/1271 "2022-05-20T12:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shruti](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Shruti](https://community.solace.com/u/Shruti)\
**Post date:** [May 20, 2022, 12:15pm UTC](https://community.solace.com/t/spring-cloud-stream-solace-binder-connection/1271/1 "2022-05-20T12:15:07Z")

</div>

Hi Team,  
I am trying to connect to solace using spring cloud stream solace binder with all the properties in application.yaml . It keeps giving error for connecting to localhost. Error creating bean with name ‘com.solace.spring.cloud.stream.binder.config.SolaceMessageChannelBinderConfiguration’: Invocation of init method failed; nested exception is com.solacesystems.jcsmp.JCSMPTransportException: (Client name: NL-C02FH05NMD6W/50490/#001e0002/N3JS4tsT8l&nbsp;&nbsp;Local port: -1&nbsp;&nbsp;Remote addr: localhost&nbsp;Remote port: 55555) - Error communicating with the router.Also find attached my properties file.  
Where as in my application.yaml I have a completely different host than localhost.  
Snapshot of my application.yaml

> spring:  
> cloud:  
> function:  
> definition: sink  
> stream:  
> bindings:  
> sink-in-0:  
> destination: ‘ATP-ORDER-EVENTS-QUEUE’  
> group: clientAck  
> content-type: ‘application/octet-stream’  
> consumer:  
> batch-mode: true  
> useNativeDecoding: true  
> binders:  
> local-solace:  
> type: solace  
> environment:  
> solace:  
> java:  
> host: tcps://int-gke-euwe4-int-ingka.messaging.solace.cloud:55443  
> msgVpn: int-gke-euwe4  
> clientUsername:  
> clientPassword:  
> solace:  
> bindings:  
> sink-in-0:  
> consumer:  
> #This adds a topic subscription w/ wildcards to the queue created with a name of TEMPS.Q.SINK above  
> queueAdditionalSubscriptions: ingka.om.ado/fulfillmentOrder/full/allocated/1.0/EU/ISOM/RS/\>

---

<div class="post-metadata">

**Author:** ![amackenzie](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/amackenzie/32/1168_2.png) [@amackenzie](https://community.solace.com/u/amackenzie)\
**Post date:** [May 20, 2022, 1:17pm UTC](https://community.solace.com/t/spring-cloud-stream-solace-binder-connection/1271/2 "2022-05-20T13:17:13Z")

</div>

It might be the binder name not being referenced and defaulting to a binder default localhost.  
Under binders: can you name it something other than `local-solace`? Then under the sink-in-0 section add `binder-name: <yournewname>`

---

<div class="post-metadata">

**Author:** ![marc](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/marc/32/2191_2.png) [@marc](https://community.solace.com/u/marc)\
**Post date:** [May 23, 2022, 4:51pm UTC](https://community.solace.com/t/spring-cloud-stream-solace-binder-connection/1271/3 "2022-05-23T16:51:15Z")

</div>

Hi @Shruti ,  
I’m curious if you figured it out. Your configuration looks correct to me but it can be tricky to troubleshoot yaml files w/ spaces.  
Also, I think Spring Boot will accept application.yml or application.yaml but for kicks can you test application.yml instead?
