File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/main/java/com/ericsson/ei/handlers Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ public class RmqHandler {
122
122
@ JsonIgnore
123
123
private SimpleMessageListenerContainer container ;
124
124
125
- private static final String WAITLIST_BINDING_KEY = "eiffel-intelligence.waitlist" ;
126
-
127
125
@ Bean
128
126
public ConnectionFactory connectionFactory () {
129
127
cachingConnectionFactory = new CachingConnectionFactory (host , port );
@@ -169,7 +167,7 @@ public TopicExchange exchange() {
169
167
170
168
@ Bean
171
169
Binding binding () {
172
- return BindingBuilder .bind (internalQueue ()).to (exchange ()).with (WAITLIST_BINDING_KEY );
170
+ return BindingBuilder .bind (internalQueue ()).to (exchange ()).with (getWaitlistQueueName () );
173
171
}
174
172
175
173
@ Bean
@@ -213,7 +211,7 @@ public RabbitTemplate rabbitMqTemplate() {
213
211
214
212
rabbitTemplate .setExchange (exchangeName );
215
213
rabbitTemplate .setQueue (getWaitlistQueueName ());
216
- rabbitTemplate .setRoutingKey (WAITLIST_BINDING_KEY );
214
+ rabbitTemplate .setRoutingKey (getWaitlistQueueName () );
217
215
rabbitTemplate .setConfirmCallback (new ConfirmCallback () {
218
216
@ Override
219
217
public void confirm (CorrelationData correlationData , boolean ack , String cause ) {
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ An internal waitlist queue is also created that uses all of the previously menti
153
153
attaches the rabbitmq.waitlist.queue.suffix property at the end of the name.
154
154
This queue does not get the routing key bindings from the rabbitmq.binding.key property and is only meant for
155
155
sending and consuming messages by Eiffel Intelligence.
156
- It instead uses the non-configurable routing key "eiffel-intelligence. waitlist" .
156
+ It instead uses the full name of the waitlist queue as a routing key .
157
157
The rabbitmq.tlsVersion property specifies the security protocol and you can find valid names
158
158
[ here] ( https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SSLContext )
159
159
You can’t perform that action at this time.
0 commit comments