title: It is not possible for an entity that requires sessions to create a non-sessionful message receiver for azure IMessageReceiver
body: <p>I'm trying to get messages from Azure Service Bus via java application. I created necessary client config and for example there was successful connection through ManagementClient</p>
  <pre><code>@Bean
  public ClientSettings getMessageReceiver() throws ServiceBusException, InterruptedException {
  
      AzureTokenCredentials azureTokenCredentials = new ApplicationTokenCredentials(
              &quot;clientID,
              &quot;domain&quot;,
              &quot;secret&quot;,
              AzureEnvironment.AZURE
      );
  
      TokenProvider tokenProvider = TokenProvider.createAzureActiveDirectoryTokenProvider(
              new AzureAuthentication(azureTokenCredentials),
              AzureEnvironment.AZURE.activeDirectoryEndpoint(),
              null
      );
  
      ClientSettings clientSettings = new ClientSettings(tokenProvider,
              RetryPolicy.getDefault(),
              Duration.ofSeconds(30),
              TransportType.AMQP);
  
      return clientSettings;
  }
  
  ManagementClient managementClient =
              new ManagementClient(Util.convertNamespaceToEndPointURI(&quot;namespace&quot;),
                      clientSettings);
      managementClient.getTopics();
  </code></pre>
  <p>But when I try to get messages from particular topic:</p>
  <pre><code>        SubscriptionClient subscriptionClient = new SubscriptionClient(&quot;namespace&quot;, &quot;events/subscriptions/subscription&quot;, clientSettings, ReceiveMode.PEEKLOCK);
  </code></pre>
  <p>And got an error message:</p>
  <blockquote>
  <p>It is not possible for an entity that requires sessions to create a non-sessionful message receiver.</p>
  </blockquote>
  <p>What additional steps should be provided?</p>