Skip to main content
net8.0net9.0net10.0

A .NET Aspire hosting package for hosting ActiveMQ.

Published
Jan 16, 2026
9mo ago
Total Downloads
77.6K
77,642

Install

dotnet add package CommunityToolkit.Aspire.Hosting.ActiveMQ --version 13.1.2-beta.504
ProductVersions
.NET
net10.0net8.0net9.0

README

CommunityToolkit.Hosting.ActiveMQ

Overview

This .NET Aspire Integration can be used to Active MQ Classic and Active MQ Artemis in a container.

Usage

Example 1: ActiveMQ Classic with default tcp scheme

var builder = DistributedApplication.CreateBuilder(args);

var amq = builder.AddActiveMQ("amq",
        builder.AddParameter("user", "admin"),
        builder.AddParameter("password", "admin", secret: true),
        61616,
        webPort: 8161);

Example 2: ActiveMQ Classic with activemq scheme for use with MassTransit

var builder = DistributedApplication.CreateBuilder(args);

var amq = builder.AddActiveMQ("amq",
        builder.AddParameter("user", "admin"),
        builder.AddParameter("password", "admin", secret: true),
        61616,
        "activemq",
        webPort: 8161);

Example 3: ActiveMQ Artemis with default tcp scheme

var builder = DistributedApplication.CreateBuilder(args);

var amq = builder.AddActiveMQArtemis("amq",
        builder.AddParameter("user", "admin"),
        builder.AddParameter("password", "admin", secret: true),
        61616,
        webPort: 8161);

Example 2: ActiveMQ Artemis with activemq scheme for use with MassTransit

var builder = DistributedApplication.CreateBuilder(args);

var amq = builder.AddActiveMQArtemis("amq",
        builder.AddParameter("user", "admin"),
        builder.AddParameter("password", "admin", secret: true),
        61616,
        "activemq",
        webPort: 8161);

Changes from Previous Version

No structural changes between v13.1.1 and v13.1.2-beta.504.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.