Alternative To Running An Application As A Windows Service
Here’s a situation that I recently encountered that presented an interesting challenge…
I was working with a Windows Server on which I needed to run a Java application as a Windows Service so that the app would not shut down as I logged off of my Remote Desktop Connection session. The kicker was that my user account for that server does not have sufficient permissions to set up a Windows Service for it.
I am not a sophisticated Windows Server admin and was unfamiliar with how Scheduled Tasks are created and managed within Windows Server. A friendly windows support person suggested the following method.
Here’s how it goes.
- Open Control Panel
- Open Scheduled Task
- Double-Click the Scheduled Task Wizard
- Select the program from the list or browse to the program that you want Windows to run as a scheduled task
- Enter a name for the task
- Select when you want the task to run. In my case, since I was needing it to behave similar to a Windows Service, I selected “When my computer starts”
- Enter your user account name, password and confirm password
- In the final dialog window, click Finish
Now you’ll either need to Restart the server or have your server admin to do so for the scheduled task to start up.
Voila!
I hope this is helpful. I don’t think I would necessarily suggest this as a first-choice instead of using a Windows Service where it’s a appropriate but this solution got me what I needed when I needed it.
If you enjoyed this post, make sure you subscribe to my RSS feed!Tags: connection session, dialog window, double click, first choice, hosting company, java application, kicker, open control panel, remote desktop connection, scheduled tasks, server admin, sophisticated windows, task wizard, tech support, windows server, windows service
This entry was posted on Saturday, March 7th, 2009 at 4:32 pm and is filed under Bizarre, General, Gizmos, Uncategorized, Web Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Posts
April 24th, 2009 at 5:12 am
Friday In searching for sites related to web hosting and specifically control hosting panel web window, your site came up.