windows-services

Tomcat 6.0.35 Windows 32b Service useSystemProxies

狂风中的少年 提交于 2020-01-17 05:46:06
问题 I've been trying the whole day to make Tomcat6 use system proxy settings. Tried various ways, about 200 different Versions of tomcat6 //US/Tomcat6 ++JvmOptions "-Djava.net.useSystemProxies=true" I tried to set the property in service.bat in the "install" section like this (also many similar versions): ... :foundJvm echo Using JVM: "%PR_JVM%" "%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams

Ajax call to wcf windows service over ssl (https)

孤街浪徒 提交于 2020-01-15 15:59:24
问题 I have a windows service which exposes an endpoint over http. Again this is a windows service (not a web service hosted in iis). I then call methods from this endpoint, using javascript/ajax. Everything works perfectly, and this the code I'm using in my windows service to create the endpoint: //Create host object WebServiceHost webServiceHost = new WebServiceHost(svcHost.obj, new Uri("http://192.168.0.100:1213")); //Add Https Endpoint WebHttpBinding binding = new WebHttpBinding();

Timeout and Windows Services for Long Running Processes (Python)

删除回忆录丶 提交于 2020-01-15 08:04:07
问题 I have a simple windows service that I created using python. My issue is that I do not know how long the service is going to take to complete, it could have 15 seconds, or it could take 4+ hours depending on what needs to be done with the data. The 4+ hours is a rare case, but I have had situation where this happens. Below is the general pattern that I've been following for windows services. I took out all the logic, but that's not the issue, and only left a dummy logging command. Is there a

How to use Threadpool.QueueUserWorkItem in a windows service?

不打扰是莪最后的温柔 提交于 2020-01-15 06:17:07
问题 I have a windows service where I am using Threadpool.QueueUserWorkItem. The service connects to multiple client databases, grabs data, converts to XLS and send files to the corresponding FTP. I have 3 questions regarding the code below: Am I using the Threadpool.QueueUserWorkItem correctly? Do I need to use Lock anywhere in the code to avoid issues? If yes, where and to what object. Is there anything that is not correct in the code? If yes, what and how to deal with it? Code: private static

How to use Threadpool.QueueUserWorkItem in a windows service?

心不动则不痛 提交于 2020-01-15 06:16:58
问题 I have a windows service where I am using Threadpool.QueueUserWorkItem. The service connects to multiple client databases, grabs data, converts to XLS and send files to the corresponding FTP. I have 3 questions regarding the code below: Am I using the Threadpool.QueueUserWorkItem correctly? Do I need to use Lock anywhere in the code to avoid issues? If yes, where and to what object. Is there anything that is not correct in the code? If yes, what and how to deal with it? Code: private static

Run a powershell script inside a windows service

若如初见. 提交于 2020-01-14 05:17:00
问题 I have a powershell script running very well , I'm calling this script within a power shelle command line : PS C:> .\myscript.ps1 -var1 variable1 -var2 variable2 I need to mount this inside a service with a stupid sc create but i couldn't find a way to launch it any help please ? Thanks a lot. 回答1: Use Windows service wrapper. It's highly configurable and provides a lot of useful options, like log rotation, service account, on failure actions and so on. It even can automatically download

Hosting WebAPI in Windows-Service crashes on first attempt

牧云@^-^@ 提交于 2020-01-14 04:16:49
问题 I have an console-app with hosted WebAPI (HttpSelfHostServer). In the console-app I have Controllers that query data from SQL-Server. The console-app works without problems (from fiddler and a Windows_client) Now I want to host the WebAPI (HttpSelfHostServer) in a Windows-Service. Therefore I have created a Service-Project and referenced the Controllers in console-app-dll so that the controllers should be found. To have a minimal chance to debug, I write some information in the event log from

Set version on a windows service

醉酒当歌 提交于 2020-01-13 19:56:33
问题 I have a windows service that is installed using a setup project. Things work fine but I would like to be able to set the version of the service as I do with the AssemblyVersion of my assemblies. The only place where I have been able to see this version number is in the version column in the listing of applications in the add or remove applications dialogue. 回答1: In the solution explorer highlight your setup project. Then select your "Properties" tab. (not right click the project, this is

Set version on a windows service

只愿长相守 提交于 2020-01-13 19:56:27
问题 I have a windows service that is installed using a setup project. Things work fine but I would like to be able to set the version of the service as I do with the AssemblyVersion of my assemblies. The only place where I have been able to see this version number is in the version column in the listing of applications in the add or remove applications dialogue. 回答1: In the solution explorer highlight your setup project. Then select your "Properties" tab. (not right click the project, this is

Set version on a windows service

痞子三分冷 提交于 2020-01-13 19:56:09
问题 I have a windows service that is installed using a setup project. Things work fine but I would like to be able to set the version of the service as I do with the AssemblyVersion of my assemblies. The only place where I have been able to see this version number is in the version column in the listing of applications in the add or remove applications dialogue. 回答1: In the solution explorer highlight your setup project. Then select your "Properties" tab. (not right click the project, this is