我想知道是否可以将共享消费者与 Quarkus 的 JMS 连接器一起使用。我想做这样的事情:
final TopicConnection topicConnection = factory.createTopicConnection();
final TopicSession topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
final MessageConsumer subscriber = topicSession.createSharedConsumer(new MQTopic("mytopic"), "mysubscription");
如何设置订阅者?
在连接器中添加“共享”属性是否值得?