service

Android: Is it better to start and stop a service each time it is needed or to let a service run and bind to and unbind form it?

I'm developing an app that checks several conditions during an incoming phone call. The main parts of the app are a BroadcastReceiver listening for Intents related to the phone's status and a local Service checking the conditions. At the moment the service is started each time an incoming call is detected and is stopped when the phone s...

Creating a heavily restricted server discovery application in c#

Dear community. I am writing you because of a new problem I need to solve, and I have now been banging my head against a wall for too long now. Basically, I need to create an application that can take care of the following: A user starts an app, which sends a broadcast to the subnet, and recieves a response of all servers there with t...

How to parse the multipart data in a restful service...

I have written a restful web service in c# and .net using the Restful Starter Kit that receives a mime multipart form via a stream. The multipart form contains a small xml fragment and a small file binary. I have read the stream in, and I have also written some code to parse the data to obtain the XML and the file binary. However, I f...

IE automation from a web service

I have a unique problem where I need a copy of IE to do some session management and run some JavaScript on the page. The goal is to retrieve a value representing the server side session ID written by the JavaScript into the HTML response. The code looks like this: public class RemoteFileProcessor { #region Fields (1)  private ...

Tomcat on Windows

Hi, I installed Tomcat 6.0.18 on Windows 2003 as a service. I try to set the CATALINA_OPTS environment variable but it seems to be ignored by Tomcat. Do I need to use the Tomcat Service Manager (procrun) instead? Is it normal that if I install Tomcat as a service it doesn't see the enviroment variables but it only wotks with procrun?...

Exe to service possible?

Is it possible to have a .exe run as a windows service? ...

How I can access to WSDL 1.1 file from ASP.NET 3.5

I have a WSDL 1.1 file which describes my Web Service. Now I need get access to its methods using ASP.NET 3.5 I tried to use wsdl.exe utility but I think that this utility use only WSDL 2.0 format. ...

Tmp issues with java service on windows 2008 service

Hello! I am having a rather nasty problem with windows 2008 server. We have a java application that is running as a service using the local services user. The problem is this user does not have access to read/write to the specified java tmp directory (specified by the system). This means that every time the application tries to create a...

Stopping the service and the babysited application before uninstalling

Hi all, I have a service MyService.exe that is babysitting my application MyApp.exe, meaning it starts the application when this one crashes or whatever. Basically when the service is stopped the application is stopped (by the service) and when the service is started the application is started by the service. In order to stop my servic...

First run notepad with my.cfg and only then start the service

Hi all, I install along with my application: 1) a service that starts and stops my application as needed 2) a conf file that contains actually the user data and that will be shown to the user to modify as needed (I give the user the chance to change it by running notepad.exe with my conf file during installing) The problem is that in m...

Quartz.net as service can't configure the quartz_job.xml file to use AdoJobStore

Hi, i am using quartz in my project, and i'm storing the jobs in the adojobstore, i've created a working quartz windows service, but i can't find where i can configure the quartz_jobs.xml to use AdoJobstore instead of RamJobStore. Thanks ...

Attach Console to Service

I currently have a WCF Service Library which will be started through a Console Application acting as ServiceHost. The ServiceHost starts the service and then waits with Console.ReadLine() for the "quit" command. If i do "Console.WriteLine();" in the service this will be printed to the ServiceHosts Console of course. The Service prints so...

How to launch a Windows service network process to listen to a port on a localhost socket that is visible to a normal user under UAC?

Here's the code (in a standard TService in Delphi): const ProcessExe = 'MyNetApp.exe'; function RunService: Boolean; var StartInfo : TStartupInfo; ProcInfo : TProcessInformation; CreateOK : Boolean; begin CreateOK := false; FillChar(StartInfo,SizeOf(TStartupInfo),#0); FillChar(ProcInfo,SizeOf(TProcessInformation),#0); ...

updating an activity from an asynchronous service

I've implemented a service that does an asynchronous sync between my application and google docs. I want to update the top level activity of my application when the sync is complete. However because of the service it's possible that the app could be be in a unknown state. Is there a way to make the top level activity, whatever that ma...

Is there a Web Service community with a large and variety pool of services provided to consume?

Please specify and rate your experience if you know any. Thanks! =] ...

Creating Service with Bluetooth activation in Android

Hi I want to create a service in Android which will initially ask user if they want to start Bluetooth and set the Bluetooth discovery. My question is: Can I launch in the service following activities? if (!mBluetoothAdapter.isEnabled()) { Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActi...

Haskell as REST server

I would like to try Haskell on a smallish project which should be well suited to it. I would like to use it as a backend to a small ajax application. Haskell backend should be able to do authentication (basic, form, whatever, ...), keep track of user session (not much data there except for username) and to dispatch request to handlers b...

Design considerations for high-reliability service

I am writing a c# windows service which will perform some background processing - basically it is a consumer for a work queue. It needs to not go down (stop processing new items), and if it does go down I need to be notified. What are some design guidelines and considerations for a) ensuring that such a service is as reliable as possi...

Passing custom info to mongrel_rails start

One thing I really don't understand is how I can pass custom start-up options to a mongrel instance. I see that a common approach is the use environment variables, but in my environment this is not going to work because my rails application serves many different clients. Much code is shared between clients, but there are also many diffe...

The mobile application cannot connect to the web service

Hello everyone. I have a mobile app webservice client that connects to a WCF webservice(on my PC) deployed in a WiMo Device. The OS is Windows Mobile 6.0. It is connected to my PC using a USB cable and ActiveSync 4.5. Problem: When I use a mobile emulator to run the application, it was able to connect to the web service successfully. ...