Run JBoss Application Server as a Windows Service with AlwaysUp

How to Run JBoss 7 as a Windows Service with AlwaysUp

Ensure that the JBoss Application Server (AS) starts after a reboot and runs 24/7. Boost its priority to achieve maximum performance!

The JBoss Application Server is a popular open-source Java Enterprise Edition based application server from Red Hat.

To set up JBoss 7 with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. Download and install the Java runtime environment (JRE), if necessary. Be sure to set the JAVA_HOME environment variable so that JBoss will be able to find Java when it is run!

  3. If necessary, Download the JBoss zip file and extract it to a new directory. We have placed it in C:\JBoss and the following instructions are based on that setting. Ensure that the JBOSS_HOME environment variable is set to the JBoss folder (again, C:\JBoss for this tutorial).

  4. JBoss includes a batch file named standalone.bat (in the bin folder) that will start the JBoss AS. Please ensure that this script will run JBoss as you like.

  5. Start AlwaysUp.

  6. Select Application > Add to open the Add Application window:

    Add Application

  7. On the General tab:

    • In the Application field, enter the full path to the standalone.bat file (C:\JBoss\bin\standalone.bat for us).

    • In the Name field, enter the name that you will call the application in AlwaysUp. We suggest JBoss but you can specify almost anything you like.

    • If the target PC is dedicated to running JBoss, we suggest that you boost the server's priority to ensure that Windows will grant it the maximum amount of resources on the host PC. We recommend High (for time critical applications). Note that you can always make this change later once you are satisfied with your setup.

    JBoss Windows Service: General Tab

  8. On the Logon tab:

    • Enter the user name and password of the account in which you setup JBoss AS.

    • If you wish to hide the DOS/command window that comes up when you run JBoss from the batch file (recommended), check the When a user logs on, don't show the application's windows and tray icons (if any) box at the bottom.

    JBoss Windows Service: LogOn Tab

  9. Click over to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that JBoss needs the TCP/IP networking stack to operate.

    JBoss Windows Service: Startup Tab

  10. Click over to the Extras tab. If you wish to capture the text normally displayed on the command window created by standalone.bat (recommended), check the Capture output to this log file box and specify the full path to a file. We have specified C:\JBoss\jboss-log.txt.

    JBoss Windows Service: Extras Tab

  11. Click the Save button. In a couple of seconds, an application called JBoss will show up in the AlwaysUp window. It is not yet running though.

    JBoss Windows Service: Created

  12. To start JBoss, choose Application > Start "JBoss".

    JBoss Windows Service: Running

  13. That's it! Next time your computer boots, JBoss will start up immediately, before anyone logs on. We encourage you to edit JBoss in AlwaysUp and check out the many other settings that may be appropriate for your environment.



JBoss not working properly as a Windows Service?

  • Review the text file you specified in step 10 for errors reported from JBoss.
  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips
  • Contact us and we will be happy to help!

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.1 New!

7.9 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!