Running a Java process in Windows even after the user is logged out

前端 未结 5 634
醉话见心
醉话见心 2020-12-19 13:10

I have a batch file that starts a Java process in a Windows 2003 server. As per the security policy, the users of that machine are logged off forcefully, if the user is inac

5条回答
  •  死守一世寂寞
    2020-12-19 13:36

    As per my analysis,

    The Idle Solution will be writing a VC++ (.net) Windows Service creation program to launch the .bat / .exe as a System service with all the required call back methods to SCM.

    Note : 1. Wrapping the process with srvany.exe would not work as it does not have any call back process to the SCM (Service Control Manager). 2. And java service Wrapper is a third party API (many are LGPL licensed).

提交回复
热议问题