We need to follow the below steps to start Red hat fuse 7.1.0 as a service wrapper.
1. Start Fuse as a foreground process.
2. install the feature wrapper.
3. create the wrapper instance
4. Install the wrapper as a service.
5. Start the service.
Go to the bin directory of the fuse folder through command prompt and execute the fuse.bat through command prompt.

fuse.bat will start the fuse as a foreground process.

Install the feature wrapper.
Execute the below command in the fuse console
feature:install wrapper

execute the below command in the fuse karaf console.
feature:list | grep wrapper
output of the command will be as below, we can see the wrapper feature is started.

Create the Wrapper Instance
Execute the below command in the fuse karaf console
wrapper:install -n fuse-service -d fuse-service -D "installing fuse-service in services.msc"
output of the command will be as below,
After executing of the command, three new files are generated. in which we will find below two files inside bin directory

and below file inside etc directory

Install the wrapper as a service.
Shutdown the fuse by executing the below command in the fuse karaf console.
shutdown -f

Go to the location of the bin directory through command prompt, and execute the batch file fuse-service-service.bat with install as an option parameter.
fuse-service-service.bat install
Out of the batch file execution is as below

We can see now fuse-service in the windows services.

Start the service.
We can start red hat fuse service in two ways.
Open services.msc right click on the fuse-service service and click on start to start the process as service

Start the service through command prompt
Open Command prompt as an Administrator and execute the below command
net start "fuse-service"
this will start red hat fuse as a service.
1. Start Fuse as a foreground process.
2. install the feature wrapper.
3. create the wrapper instance
4. Install the wrapper as a service.
5. Start the service.
Go to the bin directory of the fuse folder through command prompt and execute the fuse.bat through command prompt.
fuse.bat will start the fuse as a foreground process.
Install the feature wrapper.
Execute the below command in the fuse console
feature:install wrapper
execute the below command in the fuse karaf console.
feature:list | grep wrapper
output of the command will be as below, we can see the wrapper feature is started.
Create the Wrapper Instance
Execute the below command in the fuse karaf console
wrapper:install -n fuse-service -d fuse-service -D "installing fuse-service in services.msc"
output of the command will be as below,
Creating file: C:\Users\xxxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\bin\fuse-service-wrapper.exe
Creating file: C:\Users\xxxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\etc\fuse-service-wrapper.conf
Creating file: C:\Users\xxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\bin\fuse-service-service.bat
Setup complete. You may wish to tweak the JVM properties in the wrapper configuration file:
C:\Users\xxxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\etc\fuse-service-wrapper.conf
before installing and starting the service.
MS Windows system detected:
To install the service, run:
C:> C:\Users\xxxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\bin\fuse-service-service.bat install
Once installed, to start the service run:
C:> net start "fuse-service"
Once running, to stop the service run:
C:> net stop "fuse-service"
Once stopped, to remove the installed the service run:
C:> C:\Users\xxxx\Documents\Fuse ESB\fuse-karaf-7.1.0.fuse-710023-redhat-00001\bin\fuse-service-service.bat remove
After executing of the command, three new files are generated. in which we will find below two files inside bin directory
- fuse-service-wrapper.exe
- fuse-service-service.bat
and below file inside etc directory
Install the wrapper as a service.
Shutdown the fuse by executing the below command in the fuse karaf console.
shutdown -f
Go to the location of the bin directory through command prompt, and execute the batch file fuse-service-service.bat with install as an option parameter.
fuse-service-service.bat install
Out of the batch file execution is as below
wrapper | fuse-service installed,
We can see now fuse-service in the windows services.
Start the service.
We can start red hat fuse service in two ways.
- Start the service through services.msc
- Start the service through command prompt
Open services.msc right click on the fuse-service service and click on start to start the process as service
Start the service through command prompt
Open Command prompt as an Administrator and execute the below command
net start "fuse-service"
this will start red hat fuse as a service.
EmoticonEmoticon