You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solace-spring-cloud-starters/solace-spring-cloud-stream-starter/README.adoc
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,19 @@ See https://github.com/SolaceProducts/solace-spring-boot/tree/master/solace-spri
180
180
The Solace session can be configured to use OAuth2 authentication. See https://github.com/SolaceDev/solace-spring-boot/tree/master/solace-spring-boot-starters/solace-java-spring-boot-starter#using-oauth2-authentication-scheme-with-solace-java-api[JCSMP Spring Boot: Using OAuth2 Authentication Scheme] for more info.
181
181
====
182
182
183
+
==== Solace Binder Properties
184
+
185
+
The following properties are available for configuring the Solace binder itself and must be prefixed with `spring.cloud.stream.solace.binder.`.
186
+
187
+
sessionInitializationMode::
188
+
Specifies when the Solace session should be initialized for the binder.
189
+
+
190
+
When set to `lazy`, the session will be created only when the first binding (producer or consumer) is created that requires it.
191
+
+
192
+
When set to `eager`, the session will be created immediately when the binder is initialized, regardless of whether any bindings exist.
193
+
+
194
+
Default: `eager`
195
+
183
196
==== Solace Consumer Properties
184
197
185
198
The following properties are available for Solace consumers only and must be prefixed with `spring.cloud.stream.solace.bindings.<bindingName>.consumer.` where `bindingName` looks something like `functionName-in-0` as defined in https://docs.spring.io/spring-cloud-stream/reference/{scst-version}/spring-cloud-stream/functional-binding-names.html[Functional Binding Names].
Copy file name to clipboardExpand all lines: solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/health/handlers/SolaceSessionEventHandler.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,4 +34,12 @@ public void handleEvent(SessionEventArgs eventArgs) {
Copy file name to clipboardExpand all lines: solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/provisioning/SolaceEndpointProvisioner.java
LOGGER.warn("The connected Solace PubSub+ Broker is not compatible. It doesn't support message NACK capability. Consumer bindings will fail to start.");
91
+
}
92
+
93
+
LOGGER.info("Successfully created and connected Solace JCSMP session");
94
+
} catch (JCSMPExceptione) {
95
+
LOGGER.error("Failed to initialize Solace JCSMP session", e);
Copy file name to clipboardExpand all lines: solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/util/JCSMPSessionProducerManager.java
Copy file name to clipboardExpand all lines: solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/test/java/com/solace/spring/cloud/stream/binder/inbound/acknowledge/JCSMPAcknowledgementCallbackFactoryIT.java
0 commit comments