PK
mLAoa, mimetypeapplication/epub+zipPK
mLA META-INF/PK
mLA OEBPS/PK
mLA
OEBPS/images/PK
mLA OEBPS/imagesdb/PK
mLAh h META-INF/container.xml
In this tutorial you will:
generate the service wrapper
configure the Java Wrapper Service for your system
install a broker instance as a Windows service
configure the broker's service to start up automatically
This tutorial requires that you have Fuse MQ Enterprise installed on a Windows computer to which you have administrative privileges.
To install Fuse MQ Enterprise as a Windows service:
Start Fuse MQ Enterprise in console mode using the fusemq command.
Once the console is started and the command prompt appears, enter
features:install wrapper.
The features:install command will locate the required libraries to provision the wrapper feature and deploy it into the run time. For more information see features:install in Console Reference.
Generate the wrapper by entering
wrapper:install -n FuseMQ -d FuseMQ -D "FuseMQ Broker".
You should see the output shown in Example 2.1.
Example 2.1. Wrapper Install Output
Creating file: InstallDir\bin\FuseMQ-wrapper.exe
Creating file: InstallDir\bin\FuseMQ-service.bat
Creating file: InstallDir\etc\FuseMQ-wrapper.conf
Creating file: InstallDir\lib\libwrapper.so
Creating file: InstallDir\lib\karaf-wrapper.jar
Creating file: InstallDir\lib\karaf-wrapper-main.jar
Setup complete. You may wish to tweak the JVM properties in the wrapper config
ration file:
InstallDir\etc\FuseMQ-wrapper.conf
before installing and starting the service.
To install the service, run:
C:> InstallDir\bin\FuseMQ-service.bat install
Once installed, to start the service run:
C:> net start "FuseMQ"
Once running, to stop the service run:
C:> net stop "FuseMQ"
Once stopped, to remove the installed the service run:
C:> InstallDir\bin\karaf-service.bat removeOpen
in a text editor.InstallDir\etc\FuseMQ-wrapper.conf
The
file configures the Java Wrapper Service that Fuse MQ Enterprise uses to create a Windows service.ServiceName-wrapper.conf
Change the line containing set.default.KARAF_HOME= to
set.default.KARAF_HOME=InstallDirThis tells the wrapper where the Fuse MQ Enterprise installation is located so it can find the required libraries.
Change the line containing set.default.KARAF_BASE to
set.default.KARAF_BASE=InstallDirThis tells the wrapper where to find the configuration and data files for the broker instance being used for the service.
Change the line containing set.default.KARAF_DATA to
set.default.KARAF_BASE=InstallDir\dataThis tells the wrapper where to find the configuration and data files for the broker instance being used for the service.
Save the file.
Open a command prompt.
Change to the
directory.InstallDir
Install the broker as a Windows service by running
bin\FuseMQ-service.bat install.
From the Windows menu select |||.
The Services window opens.
Double click FuseMQ from the list of services.
The FuseMQ Properties window opens.
Specify that the service will start up when you login by selecting Automatic from the Startup Type drop-down list.
Click .
Open the context menu for the FuseMQ entry in the service list.
Select to start the broker.
You can stop the broker service by selecting in the Service window's context menu.
To uninstall the broker as a Windows service use
.InstallDir\bin\FuseMQ-service.bat
remove
In this tutorial you will:
add the Fuse MQ Enterprise command line tools to your system path
stop a locally running Fuse MQ Enterprise instance
To shutdown a broker on Windows:
Add the Fuse MQ Enterprise command line tools your path by entering
c:\set PATH=%PATH%;InstallDir\bin
Shutdown the broker instance by entering
c:\stop
To start a broker:
Add the Fuse MQ Enterprise command line tools your path by entering
%set PATH=$PATH;InstallDir/bin
Shutdown the broker by entering
% stopIn this tutorial you will:
add the Fuse MQ Enterprise command line tools to your system path
start a Fuse MQ Enterprise instance
To start a broker on Windows:
Open a command prompt at the instance's root folder.
Add the Fuse MQ Enterprise command line tools your path by entering
c:\set PATH=%PATH%;InstallDir\bin
Start the broker instance by entering
c:\start
To start a broker:
Open a command prompt at the instance's root folder.
Add the Fuse MQ Enterprise command line tools your path by entering
%set PATH=$PATH;InstallDir/bin
Start the broker instance by entering
startTable of Contents
List of Examples
