Skip to content

Commit e152040

Browse files
authored
fix: Move the connection parameters to a more suitable place in the config file. (#65)
* Removed some verbose debug logging. * fix: issues/44 - application.yml is changed, now the solace config is under spring/cloud/stream/binders. * fix: application.yml is changed, now the solace config is under spring/cloud/stream/binders.
1 parent cd44c46 commit e152040

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
138138

139139
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
140140

141+

filters/all.js

+12-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const scsLib = new ScsLib();
77
// Library versions
88
const SOLACE_SPRING_CLOUD_VERSION = '1.1.1';
99
const SPRING_BOOT_VERSION = '2.3.2.RELEASE';
10-
const SPRING_CLOUD_VERSION = 'Hoxton.SR7';
10+
const SPRING_CLOUD_VERSION = 'Hoxton.SR8';
1111
const SPRING_CLOUD_STREAM_VERSION = '3.0.7.RELEASE';
1212

1313
// Connection defaults. SOLACE_DEFAULT applies to msgVpn, username and password.
@@ -107,10 +107,11 @@ function appProperties([asyncapi, params]) {
107107
let doc = {};
108108
doc.spring = {};
109109
doc.spring.cloud = {};
110-
doc.spring.cloud.stream = {};
111-
let scs = doc.spring.cloud.stream;
112-
scs.function = {};
113-
scs.function.definition = getFunctionDefinitions(asyncapi, params);
110+
let cloud = doc.spring.cloud
111+
cloud.function = {};
112+
cloud.function.definition = getFunctionDefinitions(asyncapi, params);
113+
cloud.stream = {};
114+
let scs = cloud.stream;
114115
scs.bindings = getBindings(asyncapi, params);
115116

116117
if (params.binder === 'solace') {
@@ -123,7 +124,12 @@ function appProperties([asyncapi, params]) {
123124

124125
if (isApplication(params)) {
125126
if (params.binder === 'solace') {
126-
doc.solace = getSolace(params);
127+
scs.binders = {};
128+
scs.binders['solace-binder'] = {};
129+
let sb = scs.binders['solace-binder'];
130+
sb.type = 'solace'
131+
sb.environment = {};
132+
sb.environment.solace = getSolace(params);
127133
}
128134

129135
doc.logging = {};

0 commit comments

Comments
 (0)