# MessageQueue

The Wisej.NET `MessageQueue` component wraps Windows Message Queuing technology, enabling communication between applications across heterogeneous networks and systems, even when temporarily offline. Applications can send, receive, or peek (read without removing) messages from queues.

{% hint style="warning" %}
Message Queuing is an optional Windows component that must be installed separately.
{% endhint %}

## Features

### Queue Operations

The `MessageQueue` class provides methods for queue interaction:

* `Send(Object)`: Send messages to the queue
* `Peek`: Read messages without removal
* `Receive`: Retrieve and remove messages

### Queue Management

Create new queues or connect to existing ones:

1. Specify a path in the constructor to connect to existing queues
2. Create new queues on the server
3. Configure properties like `Category` and `Label` after association

{% hint style="info" %}
Behavior may vary slightly depending on the Message Queuing version and operating system. For details, see:

* [System.Messaging.MessageQueue on MSDN](https://docs.microsoft.com/en-us/dotnet/api/system.messaging.messagequeue?view=netframework-4.8)
  {% endhint %}
