Labels

Tuesday, December 13, 2011

Configuring JBoss 4.2.3 as Windows Service Mode






Table of Contents
Configuring JBoss in Service  1
Introduction
Supported Platforms 4
JBoss – Windows. 4
Prerequisites / Assumption: 4
Installing Jboss Application as Service in windows 4
Uninstall Jboss Service from windows 7

 



Introduction

This Document can be used to convert JBoss console mode application to windows service.

Supported Platforms

JBoss – Windows

Prerequisites / Assumption:

1.      Server OS is Windows 2003 Service Pack 2
2.      Java is installed in C:/Program Files/Java/jdk1.6.0_17/bin/java.
If the path is different, please update it in bin/jboss_server.conf
3.      JBoss 4.2.3 server configured in D: drive.
4.      Path of Default deployment should be D:\jboss-4.2.3.GA\server\default.
If the path is different, please update it in bin/jboss_server.conf
5.      jboss application running on port 8080
6.      Following file should be available.
a.       jboss_service.zip

Installing JBoss Application as Service in windows

1.      Stop JBoss Application.
2.      Extract  jboss_Service.zip in to D:\jboss-4.2.3.GA \
3.      Verify that following files are available in D:\jboss-4.2.3.GA\lib
wrapper.dll
wrapper.jar
4.      Verify that following files are there in D:\jboss-4.2.3.GA\bin
jboss.exe
jboss_server.conf
5.      Open command Prompt & change directory so that  you are at
D:\jboss-4.2.3.GA\bin\  folder
e.g. your prompt will look like D:\jboss-4.2.3.GA\bin>
Ensure that you are logged in as an Administrator. On some operating systems you will have to open the command prompt using “Run as administrator”.
6.      Test the configuration using following command; this command will start Swift server in a test mode & u should be able to access the server on configured URL. This is just to test how jboss will work in service mode. Incase if you are not able to access or getting some errors then contact Free IT Blogs support.  Proceed to the next step if the test is successful.

jboss.exe -c jboss_server.conf

After few min you will see
SVNTag=JBoss_4_2_3_GA date=
200807181417)] Started in

7.      Select the command prompt windows in which JBoss Server is running and press CTRL+C to stop the server. And you will see following screen.
8.      Install Jboss As service using following command.jboss.exe -i jboss_server.conf
you will see following display on your screen.
D:\jboss-4.2.3.GA\bin>jboss.exe -i jboss_server.conf
wrapper  | default Server on JBoss installed.

9.      Open Services from Administrative tools in control panel.
10.  Locate “Default Server on JBoss” service; Double click & change startup mode to automatic.
11.  Start “Default Server on JBoss” & check if you can login.



Uninstall JBoss Service from windows

1.      Open Services from Administrative tools in control panel.
2.      Stop “Default Server on JBoss” Service.
3.      Run following command to Uninstall Swift from services.jboss.exe -r jboss_server.conf
4.      Start JBoss from desktop shortcut if required.

No comments:

Post a Comment