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 May 15, 2024
1 parent c215cc9 commit 7f52653
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());

Check warning on line 322 in commons/src/main/java/org/eclipse/kapua/commons/event/jms/JMSServiceEventBus.java

View check run for this annotation

Codecov / codecov/patch

commons/src/main/java/org/eclipse/kapua/commons/event/jms/JMSServiceEventBus.java#L322

Added line #L322 was not covered by tests
jmsConsumer.setMessageListener(message -> {
try {
if (message instanceof TextMessage) {
Expand Down

0 comments on commit 7f52653

Please sign in to comment.