Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
/ sn-messaging-msmq Public archive

MSMQ implementation for sending server-to-server messages in sensenet.

License

Notifications You must be signed in to change notification settings

SenseNet/sn-messaging-msmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legacy feature alert

Please note that this is a legacy feature which is no longer supported on the latest (and greatest) sensenet version.

sensenet as a service (SNaaS) - use sensenet from the cloud

For a monthly subscription fee, we store all your content and data, relieving you of all maintenance-related tasks and installation, ensuring easy onboarding, easy updates, and patches.

https://www.sensenet.com/pricing

MSMQ message provider for sensenet [legacy]

MSMQ implementation for sending server-to-server messages in sensenet.

Please note that in a cloud-based environment it is more advisable to use a more modern message provider like RabbitMQ for sensenet.

Installation

To get started, install the following NuGet package:

NuGet

This is a dll-ony package, not a full sensenet component, so you only have to install the package above in Visual Studio and configure your instance.

Configuration

Please make these additions in every configuration file you plan to use in a load balanced environment (e.g. web.config and [web]\Tools\SnAdminRuntime.exe.config).

Config sections

Make sure your config file contains the necessary config section definitions at the beginning of the file:

<configSections>
    <sectionGroup name="sensenet">
      <section name="messaging" type="System.Configuration.NameValueSectionHandler" />
      <section name="providers" type="System.Configuration.NameValueSectionHandler" />
    </sectionGroup>
</configSections>

Messaging providers

Please configure both the main and the security message providers.

<providers>
  <add key="ClusterChannelProvider" value="SenseNet.Communication.Messaging.MsmqChannelProvider" />
  <add key="SecurityMessageProvider" value="SenseNet.Security.Messaging.Msmq.MsmqMessageProvider" />
</providers>

Main message queues

Provide the queue names that you registered on the server (one per app domain).

<messaging>
  <add key="MsmqChannelQueueName" value=".\private$\ryan1;.\private$\ryan2" />
</messaging>

Important: the order of the names is important: the dedicated local queue comes first. This means that web.config values on all web servers are different.

Security queues

Similarly to main queues, security queues also need to be in the appropriate order: local queue first.

<appSettings>
    <add key="SecurityMsmqChannelQueueName" value=".\private$\security1;.\private$\security2" />
</appSettings>