![]() ![]() Uninstall Command: C:\glassfish4\glassfish\domains\domain1\bin\domain1Service.exe uninstall Restart Command: C:\glassfish4\glassfish\domains\domain1\bin\domain1Service.exe restart Stop Command: C:\glassfish4\glassfish\domains\domain1\bin\domain1Service.exe stop Start Command: C:\glassfish4\glassfish\domains\domain1\bin\domain1Service.exe start Or you can use the Windows Services Wrapper instead: The service can be controlled using the Windows Services Manager Server Directory: C:\glassfish4\glassfish\domains\domain1Ĭonfiguration file for Windows Services Wrapper: C:\glassfish4\glassfish\domains\domain1\bin\domain1Service.xml ![]() Here are the details:ĭisplay Name of the service:domain1 GlassFish Server The Windows Service was created successfully. Now open a new command prompt as administrator and type in the following command. NOTE: You need admin privileges to install the windows service. Use the asadmin prompt to verify that you can start-stop the sample domain and that everything is working fine. Well, without further ado, let’s start installing the service and you will soon find out what I meant by “shortcomings”.įirst thing first, we need to make sure the Glassfish is working properly even before we think about starting to configure that as a service. The command does not fully leverage the windows services and you still have to configure a few things after creating the service. Things have moved on quite a bit since then and now the latest version of the server comes with a built in command to configure the domain as a windows service. Previously I did publish a post on how to install Glassfish V2 as a Windows service a few years ago. ![]()
0 Comments
Leave a Reply. |