39964: Configuring MassTransit to run as a service

Translate to:

Applies to:

Summary:

In MassTransit 4.5.1x20 and later versions, MassTransit runs as a service directly. This article describes the new method to install and uninstall MassTransit as a service. It also describes the enhanced scripting capabilities of MassTransit that result from this change.

Description:

All MassTransit versions prior to 4.5.1x20 required users to run mtservice.exe when running MassTransit as a service. It also required users to run reregister.bat file when upgrading to a newer version of MassTransit. When running as a service, MassTransit could not be accessed by scripts run by the user or in other non-service contexts.

MassTransit 4.5.1x20 does not require mtservice.exe to run as a service and can be accessed by scripts running in any context regardless of whether it is running as an appplication or as a service. Two new batch files are now provided to simplify the procedure needed to install and uninstall MassTransit as a service.

To configure and run MassTransit as a service:

  1. Double-click CreateMTService.bat in your MassTransit directory. This file is distributed with all versions of MassTransit 4.5.1x20 and later.
    MassTransit Service should now appear in Services window.
  2. To start running MassTransit as a service, select the MassTransit service entry and click the "Start Service" button on the menu bar.

To remove the MassTransit service:

  1. Double-click RemoveMTService.bat in your MassTransit directory. This file is distributed with all versions of MassTransit 4.5.1x20 and later.
    The MassTransit Service should now be removed from the Services window.
  2. Note: Running RemoveMTService.bat will remove all service configurations associated with MassTransit.

Tags: 

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
16 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.