Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I create a Java server, which tools do you recommend to wrap java as a Windows service?

Is it possible to have the service launch in sequence? Say server is start before a Java client can be run?

share|improve this question

2 Answers 2

Is it possible to have the service launch in sequence? Say server is start before a Java client can be run?

Yes. No. Services can have a sequence (depend on other services). How the heck, though, do you want to stop a user starting a client ON ANOTHER COMPUTER? This is like stopping people from typing your website address in the browser when you maintain your server. Does not work.

For the rest google is really your friend. "Windows Service Java" got me three hits - different wrappers - on the first page, the first three items.

http://edn.embarcadero.com/article/32068

http://stackoverflow.com/questions/68113/how-to-create-a-windows-service-from-java-app (whow, even here - try search here before posting)

http://wrapper.tanukisoftware.com/doc/english/download.jsp

I will stop here. The list goes on and on and on and on. Google really is nice to find trivial things like that.

share|improve this answer

I create a Java server, which tools do you recommend to wrap java as a Windows service?

Yes. It's been covered by TomTom answers (google: "Java as Windows Service").

Is it possible to have the service launch in sequence? Say server is start before a Java client can be run?

You can't ensure clients running on other machine to run only after the server started.

However your client application can be made to wait until the server (I assume it's a TCP/IP server) listening to the TCP/IP port. So in order to achieve this, the client should itself wait until the server is up.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.