[QUERY] Peek-Lock mode on sessionful subscriptions with custom session idle timeout #44414
Open
2 tasks done
Labels
azure-spring
All azure-spring related issues
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Query/Question
Hello and thank you for your time.
I am working on an integration of a Spring Boot project with the Azure Service Bus. Is it possible at all to create a message consumer in peek-lock mode for sessionful subscriptions using the
@ServiceBusListener
annotation with custom session idle timeout or am I simply overlooking something mundane?Example:
When I subscribe on a sessionfull subscription using the code above I get this error (on non sessionfull subscriptions the receiver is created and consumes messages just fine):
It is not possible for an entity that requires sessions to create a non-sessionful message receiver.
I used the following
application.properties
(also tried theprocessor
prefix instead ofconsumer
without luck). As you can see thesession-enabled
property is set to true, but the SDK instantiates a non-sessionful reicever.I was able to create a workaround by implementing a custom
CustomServiceBusMessageListenerContainerFactory
where I set the properties by myself. In this case messages will be consumed but I don't know how I can manipulate the session idle timeout. The value for "message lock duration" on the subscription itself seems to be completely ignored – I setup a value of 8 seconds, but according to logs the timeout occurs after 1 minuteAs far as I understand this possibility was implemented in MR 34700 but it seems to me it works only with the fluent API.
Why is this not a Bug or a feature Request?
Service Bus and the Java SDK make the impression of mature products, after tinkering for weeks I just hope that I overlook something.
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: