hi, configuration for the JCSMP properties is handled by Spring Boot configuration as mentioned here: GitHub - SolaceProducts/spring-cloud-stream-binder-solace: Spring Cloud Stream Binder for Solace PubSub+
so if you used the sample Binder config listed on that page, you can just add in the SSL parameters into that config (or use one of the other ways that Spring Boot allows for configuration) application.yaml
.
spring:
cloud:
stream:
bindings:
input:
destination: queuename
group: myconsumergroup
solace:
java:
host: tcp://192.168.133.64
msgVpn: default
clientUsername: default
clientPassword: default
connectRetries: -1
reconnectRetries: -1
apiProperties:
SSL_VALIDATE_CERTIFICATE: true
SSL_TRUST_STORE: <path>
SSL_TRUST_STORE_PASSWORD: <pwd>
The apiProperties
is needed as per the bottom of this section: GitHub - SolaceProducts/solace-java-spring-boot: A Spring Boot auto-configuration and starter for the Solace Java API..
Let me know how this goes.
edit: changed application.properties
to application.yml
as the example I give is YAML