Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Service Bus Queue session is enabled #1024

@oleksandr-yushchenko

Description

@oleksandr-yushchenko

Service Bus Queue session is enabled, so the listener must be configured with the option for
session.

Is it possible to read messages from Service Bus Queue with session enabled? Looks like this SDK does not allow it.
I'm trying to read messages:

$this->serviceBusRestProxy = ServicesBuilder::getInstance()->createServiceBusService($connectionString);
$options = new ReceiveMessageOptions();
$options->setPeekLock();
// Receive message.
$message = $this->serviceBusRestProxy->receiveQueueMessage($queue_name, $options);

And got error from message serviceBusRestProxy:

Fail:
Code: 405
Value: Method Not Allowed
details (if any): <Error><Code>405</Code><Detail>It is not possible for an entity that requires sessions to create a non-sessionful message receiver. TrackingId:xxxxxxxxxxxxx, SystemTracker:XXXXXXXXXX:Queue:XXXXXXXXXXXX, Timestamp:2023-03-16T10:38:22</Detail></Error>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions