简体   繁体   中英

Is it possible to create a JmsListener for a specific Session in Spring Boot JMS with Azure Service Bus

I have a Service Bus Queue which is Session-enabled. For example, let's say that messages are divided into Session-1 and Session-2 in the queue.

I am trying to create two JmsListener s for the queue, one processing messages with Session-1 and another for Session-2 .

In the Azure documentation for using Spring Boot with a Service Bus Queue I see that there is an example of how to set the Session ID while sending a message via JMSXGroupID , however there is no example on how to receive messages for a particular session.

My only idea at the moment is to use a MessageSelector to filter.

Looks like it not possible as of now:

Github issue linked here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM