|
From: Barry A. <tit...@gm...> - 2007-12-20 00:57:25
|
Hi All, I am in the process of evaluating Java Service Wrapper for Windows and I am wondering if there is a built in way to communicate to a wrapped service? I have some code that I need to run as a Windows service and I need to be able to communicate to it from another process and tell it to run. On Windows you have you have the ServiceBase.OnCustomCommand listener. I have thought about different ways to communicate this event to the service. One way is programmatically pausing the service, ( "net pause <service name>" ) and continuing it when I need it to run. The problem with this is it needs to work for someone logged in as a regular "User", not just an admin. The service would have admin privileges, but the program may only have User privileges. I also thought about communicating via ports, but I didn't know if there was some communication functionality already built in that I was just overlooking? Any thoughts on this? Many thanks to you all. -B |