Skip to content

Commit

Permalink
:fix: service events remove durable subscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: riccardomodanese <riccardo.modanese@eurotech.com>
  • Loading branch information
riccardomodanese committed Apr 17, 2024
1 parent 0d289f9 commit 144bc00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ synchronized void subscribe(Subscription subscription)
final Session jmsSession = jmsConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Topic jmsTopic = jmsSession.createTopic(subscriptionStr);
for (int i = 0; i < consumerPoolSize; i++) {
MessageConsumer jmsConsumer = jmsSession.createSharedDurableConsumer(jmsTopic, subscription.getName());
MessageConsumer jmsConsumer = jmsSession.createSharedConsumer(jmsTopic, subscription.getName());
jmsConsumer.setMessageListener(message -> {
try {
if (message instanceof TextMessage) {
Expand Down

0 comments on commit 144bc00

Please sign in to comment.