Technology Group of the North, LLC

  • Increase font size
  • Default font size
  • Decrease font size

jBilling run as service - Win2K3

E-mail Print

Running jBilling as Windows Service on Windows Server 2003

Posted by: Allan Lee Mesina on Dec 14, 2008


jBilling is an opensource online billing solution, created by Enterprise jBilling Software Ltd

Important: To support the jbilling developers, they are selling a complete user manual and online documentation here.

The install documentation is pretty straight forward. The main purpose of publishing this guide is to add to the already posted how-to's on running jbilling as a windows service. There is a documentation here and a few forum topics on how to implement the service but the steps are incomplete.

Now lets get this service installed.

We are assuming that you already have jbilling installed and running. If not, follow the installation guide located here.

1. Download and install the Windows Server 2003 Resource Kit.
2. Using Notepad or any other text editor, create a new file named Autoexnt.bat, then type the following in the first line:

START c:\jbilling\bin\run.bat

3. Save this file as Autoexnt.bat in the C:\Windows\System32\ directory
4. Copy Autoexnt.exe, Servmess.dll, and Instexnt.exe to the C:\Windows\System32 directory. These files are located in the Resource Kit Install directory (C:\Program Files\Windows Resource Kits\Tools).
5. At a command prompt, type instexnt install, and then press ENTER.
You will receive the following message:

 CreateService AutoExNT SUCCESS with InterActive Flag turned OFF
6. Configure the service to run at startup
  1. Click Start, point to Programs, point to Administrative Tools, and then click Computer Management.
  2. Double-click the Services and Applications branch to expand it, and then click Services.
  3. Double-click the AutoExNT service, click Automatic in the Startup type box, and then click OK.
Important note about Windows Firewall ports. For those of you who has windows firewall enabled, run the run.bat file from the command prompt once. This will trigger a windows firewall pop-up asking you to "block" or "allow" the process. Choose allow to add the jbilling application to the firewall exceptions.
Additional resources:
Microsoft - How to Run a Batch File Before Logging on to Your Computer